mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 06:53:18 +08:00
Fixing pylint
This commit is contained in:
parent
6171259b34
commit
2e3191c76a
@ -25,7 +25,9 @@ class _Entry:
|
|||||||
width: float | None = None,
|
width: float | None = None,
|
||||||
height: float | None = None,
|
height: float | None = None,
|
||||||
):
|
):
|
||||||
|
# pylint: disable=too-many-locals
|
||||||
# pylint: disable=too-many-statements
|
# pylint: disable=too-many-statements
|
||||||
|
# pylint: disable=too-many-positional-arguments
|
||||||
self._scoreboard = weakref.ref(scoreboard)
|
self._scoreboard = weakref.ref(scoreboard)
|
||||||
self._do_cover = do_cover
|
self._do_cover = do_cover
|
||||||
self._scale = scale
|
self._scale = scale
|
||||||
@ -384,6 +386,7 @@ class Scoreboard:
|
|||||||
Label can be something like 'points' and will
|
Label can be something like 'points' and will
|
||||||
show up on boards if provided.
|
show up on boards if provided.
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=too-many-positional-arguments
|
||||||
self._flat_tex = bs.gettexture('null')
|
self._flat_tex = bs.gettexture('null')
|
||||||
self._entries: dict[int, _Entry] = {}
|
self._entries: dict[int, _Entry] = {}
|
||||||
self._label = label
|
self._label = label
|
||||||
@ -417,6 +420,7 @@ class Scoreboard:
|
|||||||
show_value: bool = True,
|
show_value: bool = True,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Update the score-board display for the given bs.Team."""
|
"""Update the score-board display for the given bs.Team."""
|
||||||
|
# pylint: disable=too-many-positional-arguments
|
||||||
if team.id not in self._entries:
|
if team.id not in self._entries:
|
||||||
self._add_team(team)
|
self._add_team(team)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user