-
Notifications
You must be signed in to change notification settings - Fork 27.4k
[typing] Add static type hints to torch.distributions. #144196
Copy link
Copy link
Closed
Labels
module: distributionsRelated to torch.distributionsRelated to torch.distributionsmodule: typingRelated to mypy type annotationsRelated to mypy type annotationstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🚀 The feature, motivation and pitch
Current lack of type hints causes some issues, for instance #76772
- Add type hints for
lazy_propertyclass ([typing] Add type hints to@propertyand@lazy_propertyintorch.distributions. #144110) - Add type hints for
@propertyand@lazy_property([typing] Add type hints to@propertyand@lazy_propertyintorch.distributions. #144110) - Add type hints to
__init__methods ([typing] Add type hints to__init__methods intorch.distributions. #144197) - Add type hints to methods (Full static typing for
torch.distributions#144219) - Add type hints to attributes (Full static typing for
torch.distributions#144219) - Add type hints to utility functions (Full static typing for
torch.distributions#144219)
Alternatives
No response
Additional context
No response
cc @fritzo @neerajprad @alicanb @nikitaved @ezyang @malfet @xuzhao9 @gramster
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
module: distributionsRelated to torch.distributionsRelated to torch.distributionsmodule: typingRelated to mypy type annotationsRelated to mypy type annotationstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module