Skip to content

Commit

Permalink
Allow stubtest to ignore python2 only magic methods (#13290)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 30, 2022
1 parent 0d7424c commit 8919d2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,11 @@ def verify_typealias(
"__instancecheck__",
"__subclasshook__",
"__subclasscheck__",
# python2 only magic methods:
"__cmp__",
"__nonzero__",
"__unicode__",
"__div__",
# Pickle methods
"__setstate__",
"__getstate__",
Expand Down

0 comments on commit 8919d2a

Please sign in to comment.