Updates for PyCharm 2020.1

This commit is contained in:
Eric Froemling 2020-04-08 18:12:36 -07:00
parent 146ad291b1
commit f04a819f1e
5 changed files with 19 additions and 10 deletions

View File

@ -645,6 +645,7 @@
<w>fsettings</w>
<w>fsplit</w>
<w>fsrc</w>
<w>fstab</w>
<w>fstrs</w>
<w>ftmp</w>
<w>ftplib</w>
@ -818,6 +819,7 @@
<w>imghdr</w>
<w>imgw</w>
<w>incentivized</w>
<w>includetest</w>
<w>incr</w>
<w>incrementbuild</w>
<w>indentfilter</w>
@ -924,12 +926,21 @@
<w>levelname</w>
<w>lfull</w>
<w>libcrypto</w>
<w>libegl</w>
<w>libinst</w>
<w>liblzma</w>
<w>libmain</w>
<w>libopena</w>
<w>libopenal</w>
<w>libpython</w>
<w>libsd</w>
<w>libsdl</w>
<w>libsqlite</w>
<w>libssl</w>
<w>libvorbi</w>
<w>libvorbis</w>
<w>libxm</w>
<w>libxmu</w>
<w>libxz</w>
<w>lindex</w>
<w>lindexorig</w>
@ -1177,6 +1188,7 @@
<w>opcode</w>
<w>opdir</w>
<w>opendiff</w>
<w>openssh</w>
<w>operasinger</w>
<w>oppnode</w>
<w>opstr</w>

View File

@ -87,20 +87,12 @@
<option value="devtool.*" />
<option value="AppKit" />
<option value="typing.Sequence.register" />
<option value="xml.dom.*" />
</list>
</option>
</inspection_tool>
<inspection_tool class="PyUnusedLocalInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false">
<scope name="UncheckedPython" level="WEAK WARNING" enabled="false">
<option name="ignoreTupleUnpacking" value="true" />
<option name="ignoreLambdaParameters" value="true" />
<option name="ignoreLoopIterationVariables" value="true" />
<option name="ignoreVariablesStartingWithUnderscore" value="true" />
</scope>
<option name="ignoreTupleUnpacking" value="true" />
<option name="ignoreLambdaParameters" value="true" />
<option name="ignoreLoopIterationVariables" value="true" />
<option name="ignoreVariablesStartingWithUnderscore" value="true" />
<scope name="UncheckedPython" level="WEAK WARNING" enabled="false" />
</inspection_tool>
</profile>
</component>

View File

@ -550,6 +550,7 @@ class RaceGame(ba.TeamGameActivity):
try:
plr[1].gamedata['rank'] = i
if plr[1].actor is not None:
# noinspection PyUnresolvedReferences
node = plr[1].actor.distance_txt
if node:
node.text = str(i + 1) if plr[1].is_alive() else ''

View File

@ -275,6 +275,8 @@ class SoundtrackEditWindow(ba.Window):
ba.widget(edit=prev_type_button, down_widget=btn)
prev_type_button = btn
ba.textwidget(parent=row, size=(10, 32), text='') # spacing
# (looks like a PyCharm false positive)
# noinspection PyArgumentList
btn = ba.buttonwidget(
parent=row,
size=(50, 32),

View File

@ -363,6 +363,7 @@ class BaseEnumValue(TypedValue[T]):
else:
# At this point we assume its an enum value
try:
# noinspection PyArgumentList
self._enumtype(data)
except ValueError:
if error:
@ -376,6 +377,7 @@ class BaseEnumValue(TypedValue[T]):
def filter_output(self, data: Any) -> Any:
if self._allow_none and data is None:
return None
# noinspection PyArgumentList
return self._enumtype(data)