Skip to content

Improve typing.TypeGuard docstring #117521

Closed
@JelleZijlstra

Description

@JelleZijlstra

The current docstring for typing.TypeGuard includes a single example, but that example does not use TypeGuard, and in fact demonstrates behavior that differs from that of TypeGuard in essential ways. It would be less confusing if the TypeGuard example actually exemplified TypeGuard.

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions