Skip to content

Commit cd09ad7

Browse files
authored
Future proof name mangling
1 parent a7a464f commit cd09ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def is_not_in_all(self, name: str) -> bool:
832832
return False
833833

834834
def is_private_name(self, name: str, fullname: str | None = None) -> bool:
835-
if name.startswith("__mypy-"):
835+
if "__mypy-" in name:
836836
return True # Never include mypy generated symbols
837837
if self._include_private:
838838
return False

0 commit comments

Comments
 (0)