Skip to content

Removed some cases of the singleton-comparison pitfall#170

Open
NaelsonDouglas wants to merge 1 commit intolongld:masterfrom
python-pitfalls:master
Open

Removed some cases of the singleton-comparison pitfall#170
NaelsonDouglas wants to merge 1 commit intolongld:masterfrom
python-pitfalls:master

Conversation

@NaelsonDouglas
Copy link

Problem:
The code had some cases of the singleton-comparison pitfall (code C0121 on the Pylint linter documentation)

Solution:
Applied a simple refactoring to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant