Skip to content
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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

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