Skip to content

Conversation

@microbit-robert
Copy link
Contributor

No description provided.

:return: The type of the object passed in.
"""
...
@overload
Copy link
Contributor Author

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.

:return: The number of times an item appears in the list.
"""
...
def insert(self, __index: SupportsIndex, __object: _T) -> None:
Copy link
Contributor Author

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:

Suggested change
def insert(self, __index: SupportsIndex, __object: _T) -> None:
def insert(self, index: SupportsIndex, object: T) -> None:

@microbit-robert
Copy link
Contributor Author

Class docstrings need more thought, they have mostly been added quickly to ensure that the documentation is shown in the API tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants