-
Notifications
You must be signed in to change notification settings - Fork 2
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
[DRAFT - DO NOT MERGE] Add documentation for referenced builtins #101
base: main
Are you sure you want to change the base?
Conversation
|
||
:return: The type of the object passed in. | ||
""" | ||
... | ||
@overload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overload needs docstring, though a complex signature for our audience.
lang/en/typeshed/stdlib/builtins.pyi
Outdated
:return: The number of times an item appears in the list. | ||
""" | ||
... | ||
def insert(self, __index: SupportsIndex, __object: _T) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just change signatures like this to:
def insert(self, __index: SupportsIndex, __object: _T) -> None: | |
def insert(self, index: SupportsIndex, object: T) -> None: |
Class docstrings need more thought, they have mostly been added quickly to ensure that the documentation is shown in the API tab. |
No description provided.