mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
Updates for PyCharm 2020.1
This commit is contained in:
parent
146ad291b1
commit
f04a819f1e
12
.idea/dictionaries/ericf.xml
generated
12
.idea/dictionaries/ericf.xml
generated
@ -645,6 +645,7 @@
|
|||||||
<w>fsettings</w>
|
<w>fsettings</w>
|
||||||
<w>fsplit</w>
|
<w>fsplit</w>
|
||||||
<w>fsrc</w>
|
<w>fsrc</w>
|
||||||
|
<w>fstab</w>
|
||||||
<w>fstrs</w>
|
<w>fstrs</w>
|
||||||
<w>ftmp</w>
|
<w>ftmp</w>
|
||||||
<w>ftplib</w>
|
<w>ftplib</w>
|
||||||
@ -818,6 +819,7 @@
|
|||||||
<w>imghdr</w>
|
<w>imghdr</w>
|
||||||
<w>imgw</w>
|
<w>imgw</w>
|
||||||
<w>incentivized</w>
|
<w>incentivized</w>
|
||||||
|
<w>includetest</w>
|
||||||
<w>incr</w>
|
<w>incr</w>
|
||||||
<w>incrementbuild</w>
|
<w>incrementbuild</w>
|
||||||
<w>indentfilter</w>
|
<w>indentfilter</w>
|
||||||
@ -924,12 +926,21 @@
|
|||||||
<w>levelname</w>
|
<w>levelname</w>
|
||||||
<w>lfull</w>
|
<w>lfull</w>
|
||||||
<w>libcrypto</w>
|
<w>libcrypto</w>
|
||||||
|
<w>libegl</w>
|
||||||
<w>libinst</w>
|
<w>libinst</w>
|
||||||
<w>liblzma</w>
|
<w>liblzma</w>
|
||||||
<w>libmain</w>
|
<w>libmain</w>
|
||||||
|
<w>libopena</w>
|
||||||
|
<w>libopenal</w>
|
||||||
<w>libpython</w>
|
<w>libpython</w>
|
||||||
|
<w>libsd</w>
|
||||||
|
<w>libsdl</w>
|
||||||
<w>libsqlite</w>
|
<w>libsqlite</w>
|
||||||
<w>libssl</w>
|
<w>libssl</w>
|
||||||
|
<w>libvorbi</w>
|
||||||
|
<w>libvorbis</w>
|
||||||
|
<w>libxm</w>
|
||||||
|
<w>libxmu</w>
|
||||||
<w>libxz</w>
|
<w>libxz</w>
|
||||||
<w>lindex</w>
|
<w>lindex</w>
|
||||||
<w>lindexorig</w>
|
<w>lindexorig</w>
|
||||||
@ -1177,6 +1188,7 @@
|
|||||||
<w>opcode</w>
|
<w>opcode</w>
|
||||||
<w>opdir</w>
|
<w>opdir</w>
|
||||||
<w>opendiff</w>
|
<w>opendiff</w>
|
||||||
|
<w>openssh</w>
|
||||||
<w>operasinger</w>
|
<w>operasinger</w>
|
||||||
<w>oppnode</w>
|
<w>oppnode</w>
|
||||||
<w>opstr</w>
|
<w>opstr</w>
|
||||||
|
|||||||
12
.idea/inspectionProfiles/Default.xml
generated
12
.idea/inspectionProfiles/Default.xml
generated
@ -87,20 +87,12 @@
|
|||||||
<option value="devtool.*" />
|
<option value="devtool.*" />
|
||||||
<option value="AppKit" />
|
<option value="AppKit" />
|
||||||
<option value="typing.Sequence.register" />
|
<option value="typing.Sequence.register" />
|
||||||
|
<option value="xml.dom.*" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</inspection_tool>
|
</inspection_tool>
|
||||||
<inspection_tool class="PyUnusedLocalInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false">
|
<inspection_tool class="PyUnusedLocalInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false">
|
||||||
<scope name="UncheckedPython" level="WEAK WARNING" enabled="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" />
|
|
||||||
</inspection_tool>
|
</inspection_tool>
|
||||||
</profile>
|
</profile>
|
||||||
</component>
|
</component>
|
||||||
@ -550,6 +550,7 @@ class RaceGame(ba.TeamGameActivity):
|
|||||||
try:
|
try:
|
||||||
plr[1].gamedata['rank'] = i
|
plr[1].gamedata['rank'] = i
|
||||||
if plr[1].actor is not None:
|
if plr[1].actor is not None:
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
node = plr[1].actor.distance_txt
|
node = plr[1].actor.distance_txt
|
||||||
if node:
|
if node:
|
||||||
node.text = str(i + 1) if plr[1].is_alive() else ''
|
node.text = str(i + 1) if plr[1].is_alive() else ''
|
||||||
|
|||||||
@ -275,6 +275,8 @@ class SoundtrackEditWindow(ba.Window):
|
|||||||
ba.widget(edit=prev_type_button, down_widget=btn)
|
ba.widget(edit=prev_type_button, down_widget=btn)
|
||||||
prev_type_button = btn
|
prev_type_button = btn
|
||||||
ba.textwidget(parent=row, size=(10, 32), text='') # spacing
|
ba.textwidget(parent=row, size=(10, 32), text='') # spacing
|
||||||
|
# (looks like a PyCharm false positive)
|
||||||
|
# noinspection PyArgumentList
|
||||||
btn = ba.buttonwidget(
|
btn = ba.buttonwidget(
|
||||||
parent=row,
|
parent=row,
|
||||||
size=(50, 32),
|
size=(50, 32),
|
||||||
|
|||||||
@ -363,6 +363,7 @@ class BaseEnumValue(TypedValue[T]):
|
|||||||
else:
|
else:
|
||||||
# At this point we assume its an enum value
|
# At this point we assume its an enum value
|
||||||
try:
|
try:
|
||||||
|
# noinspection PyArgumentList
|
||||||
self._enumtype(data)
|
self._enumtype(data)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
if error:
|
if error:
|
||||||
@ -376,6 +377,7 @@ class BaseEnumValue(TypedValue[T]):
|
|||||||
def filter_output(self, data: Any) -> Any:
|
def filter_output(self, data: Any) -> Any:
|
||||||
if self._allow_none and data is None:
|
if self._allow_none and data is None:
|
||||||
return None
|
return None
|
||||||
|
# noinspection PyArgumentList
|
||||||
return self._enumtype(data)
|
return self._enumtype(data)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user