Skip to content

Commit cb14d6f

Browse files
authored
stubgen: treat dlls as c modules (#14503)
Fixes #14028
1 parent a08388c commit cb14d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/moduleinspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def is_c_module(module: ModuleType) -> bool:
3636
# Could be a namespace package. These must be handled through
3737
# introspection, since there is no source file.
3838
return True
39-
return os.path.splitext(module.__dict__["__file__"])[-1] in [".so", ".pyd"]
39+
return os.path.splitext(module.__dict__["__file__"])[-1] in [".so", ".pyd", ".dll"]
4040

4141

4242
class InspectError(Exception):

0 commit comments

Comments
 (0)