-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing type annotations in documentation #124
Comments
Hi! We definitely support type hints :) don't hesitate to open issues with minimal reproducible examples in our bug tracker ^^ |
Ah, sorry, I read type hints instead of type comments. We don't support comments indeed. |
What I like about PEP 484 type comments for function annotations is that they can make many function signatures much more readable. For example: def process_data(raw_data: List[Dict[str, str]], config: Optional[Dict[str, str]] = None) -> List[int]:
"""Process raw data according to config."""
pass becomes: def process_data(raw_data, config=None):
# type: (List[Dict[str, str]], Optional[Dict[str, str]]) -> List[int]
"""Process raw data according to config."""
pass And type comment based function annotations are well supported by mypy and IDEs like PyCharm. |
Fortunately, |
mkdocstrings does not seem to support PEP 484 type comments
The text was updated successfully, but these errors were encountered: