mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
lint fixes and tidying
This commit is contained in:
parent
94e2155a89
commit
33e4e42837
@ -253,10 +253,9 @@ class CoopBrowserWindow(ba.Window):
|
||||
# starting point.
|
||||
if (app.accounts.account_tournament_list is not None
|
||||
and app.accounts.account_tournament_list[0]
|
||||
== _ba.get_account_state_num() and all([
|
||||
t_id in app.accounts.tournament_info
|
||||
for t_id in app.accounts.account_tournament_list[1]
|
||||
])):
|
||||
== _ba.get_account_state_num()
|
||||
and all(t_id in app.accounts.tournament_info
|
||||
for t_id in app.accounts.account_tournament_list[1])):
|
||||
tourney_data = [
|
||||
app.accounts.tournament_info[t_id]
|
||||
for t_id in app.accounts.account_tournament_list[1]
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
|
||||
<h4><em>last updated on 2021-02-15 for Ballistica version 1.6.0 build 20279</em></h4>
|
||||
<h4><em>last updated on 2021-02-22 for Ballistica version 1.6.0 build 20280</em></h4>
|
||||
<p>This page documents the Python classes and functions in the 'ba' module,
|
||||
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
|
||||
<hr>
|
||||
|
||||
@ -29,11 +29,11 @@ class PipRequirement:
|
||||
|
||||
|
||||
PIP_REQUIREMENTS = [
|
||||
PipRequirement(modulename='pylint', minversion=[2, 6, 0]),
|
||||
PipRequirement(modulename='mypy', minversion=[0, 800]),
|
||||
PipRequirement(modulename='pylint', minversion=[2, 7, 0]),
|
||||
PipRequirement(modulename='mypy', minversion=[0, 812]),
|
||||
PipRequirement(modulename='yapf', minversion=[0, 30, 0]),
|
||||
PipRequirement(modulename='cpplint', minversion=[1, 5, 4]),
|
||||
PipRequirement(modulename='pytest', minversion=[6, 2, 1]),
|
||||
PipRequirement(modulename='pytest', minversion=[6, 2, 2]),
|
||||
PipRequirement(modulename='typing_extensions'),
|
||||
PipRequirement(modulename='pytz'),
|
||||
PipRequirement(modulename='ansiwrap'),
|
||||
|
||||
@ -384,7 +384,7 @@ def make_hash(obj: Any) -> int:
|
||||
import copy
|
||||
|
||||
if isinstance(obj, (set, tuple, list)):
|
||||
return hash(tuple([make_hash(e) for e in obj]))
|
||||
return hash(tuple(make_hash(e) for e in obj))
|
||||
if not isinstance(obj, dict):
|
||||
return hash(obj)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user