-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Have a way to require type annotations #3853
Copy link
Copy link
Open
Labels
CheckersRelated to a checkerRelated to a checkerEnhancement ✨Improvement to a componentImprovement to a componentHigh priorityIssue with more than 10 reactionsIssue with more than 10 reactionsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationtyping
Milestone
Metadata
Metadata
Assignees
Labels
CheckersRelated to a checkerRelated to a checkerEnhancement ✨Improvement to a componentImprovement to a componentHigh priorityIssue with more than 10 reactionsIssue with more than 10 reactionsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementationtyping
Is your feature request related to a problem?
Having type annotations makes the code more understandable.
Having a way to require methods have type annotations would be a great start.
Describe the solution you'd like
An option which enforces presence of type annotations.
Where should they be present?
For methods.. What part of the signature should the enforcement be for?
Any standard set of exemptions?
Additional context
This should be opt-in, i.e. disabled by default (for backward compatibility), so individuals can enable it on a per-file basis (or a flag to pylint binary)