Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
aec0a8b1
Commit
aec0a8b1
authored
Apr 09, 2021
by
Wolfgang Rohdewald
Browse files
pylint assorted things
parent
a4402de0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/handboard.py
View file @
aec0a8b1
...
...
@@ -155,7 +155,7 @@ class HandBoard(Board):
without boni"""
return
[
x
for
x
in
self
.
uiTiles
if
x
.
yoffset
>
0
and
not
x
.
isBonus
]
def
newLowerMelds
(
self
):
def
newLowerMelds
(
self
):
# pylint: disable=no-self-use
"""a list of melds for the hand as it should look after sync"""
return
[]
...
...
src/intelligence.py
View file @
aec0a8b1
...
...
@@ -30,7 +30,7 @@ class AIDefaultAI:
@
property
def
player
(
self
):
"""hide weakref"""
return
self
.
_player
()
if
self
.
_player
else
None
return
self
.
_player
()
if
self
.
_player
else
None
# pylint: disable=not-callable
def
name
(
self
):
"""return our name"""
...
...
src/scoring.py
View file @
aec0a8b1
...
...
@@ -500,7 +500,7 @@ class ScoringGame(Game):
self
.
throwDices
()
@
Game
.
seed
.
getter
def
seed
(
self
):
def
seed
(
self
):
# looks like a pylint bug pylint: disable=invalid-overridden-method
"""a scoring game never has a seed"""
return
None
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment