Skip to content

Commit

Permalink
Update ModuleType.__file__ to be Optional (#6186)
Browse files Browse the repository at this point in the history
Per the Python documentation, `ModuleType.__file__` is `Optional`: https://docs.python.org/3/reference/import.html#file__
  • Loading branch information
ozanani authored Nov 7, 2021
1 parent 6d318e7 commit 4601581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class SimpleNamespace:

class ModuleType:
__name__: str
__file__: str
__file__: str | None
__dict__: dict[str, Any]
__loader__: _LoaderProtocol | None
__package__: str | None
Expand Down

0 comments on commit 4601581

Please sign in to comment.