forked from buguroo/pyknow
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
What should be done about this? disable the error?
py313: commands[0]> pycodestyle --show-source --show-pep8 experta experta\matchers\rete\check.py:31:15: E721 do not compare types, for exact checks use is/is not, for instance checks use isinstance()res = type(fact) == self.fact_type ^ Object type comparisons shouldis/is not/isinstance()`.
Do not compare types directly.
Okay: if isinstance(obj, int):
Okay: if type(obj) is int:
E721: if type(obj) == type(1):
py313: exit 1 (0.23 seconds) C:\Users\doug\code\experta> pycodestyle --show-source --show-pep8 experta pid=17296
py313: FAIL ✖ in 1.68 seconds`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels