Skip to content

Add annotations to example of overload implementation #24310

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

Closed
wants to merge 1 commit into from
Closed

Add annotations to example of overload implementation #24310

wants to merge 1 commit into from

Conversation

MarkCBell
Copy link

For the body of the implementation of an overloaded function to be type-checked it must be annotated.
This updates the overloaded example to show this behaviour.
Similar to python/mypy#3369

For the body of the implementation of an overloaded function to be type-checked it must be annotated. 
This updates the overloaded example to show this behaviour.
Similar to python/mypy#3369
@MarkCBell
Copy link
Author

So the PR template says that "Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue." however it looks like I can't add the "skip issue" or "skip news" labels to this PR since I don't have commit access. Could a member of the core core dev / triage team add these labels to this one line documentation change please.

@gvanrossum
Copy link
Member

I disagree that the body "must" be annotated. This depends on the type checker used and the flags/configuration passed. I personally find the added annotation here a distraction.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Feb 24, 2021
@gvanrossum gvanrossum closed this Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip issue skip news stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants