Visitar URL original
Add annotations to example of overload implementation by MarkCBell · Pull Request #24310 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260219040054/https://github.com/python/cpython/pull/24310
Skip to content
/ cpython Public

Add annotations to example of overload implementation#24310

Closed
MarkCBell wants to merge 1 commit intopython:masterfrom
MarkCBell:patch-1
Closed

Add annotations to example of overload implementation#24310
MarkCBell wants to merge 1 commit intopython:masterfrom
MarkCBell:patch-1

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

Comments