Skip to content

Commit

Permalink
stubgen: treat dlls as c modules (#14503)
Browse files Browse the repository at this point in the history
Fixes #14028
  • Loading branch information
hauntsaninja authored Jan 22, 2023
1 parent a08388c commit cb14d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/moduleinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def is_c_module(module: ModuleType) -> bool:
# Could be a namespace package. These must be handled through
# introspection, since there is no source file.
return True
return os.path.splitext(module.__dict__["__file__"])[-1] in [".so", ".pyd"]
return os.path.splitext(module.__dict__["__file__"])[-1] in [".so", ".pyd", ".dll"]


class InspectError(Exception):
Expand Down

0 comments on commit cb14d6f

Please sign in to comment.