dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
871 stars 159 forks source link

SyntaxWarning due to comparison of literals using is in Python 3.8 #260

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago
find . -iname '*.py'  | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./pygam/core.py:57: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if flatten_attrs and k is not 'terms':
./pygam/pygam.py:225: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if (self.terms is not 'auto') and not (isinstance(self.terms, (TermList, Term, type(None)))):
./pygam/pygam.py:276: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.terms is 'auto':