About this page
PEP 742 – Narrowing types with TypeIs | peps.python.org
“This PEP proposes a new special form, TypeIs, to allow annotating functions that can be used to narrow the type of a value, similar to the builtin isinstance(). Unlike the existing typing.TypeGuard special form, TypeIs can narrow the type in both the if...” (the page’s own description)
- Topic
- Software Development
- Quality
- Quality 87 scored 12 Aug 2025
- Language
- english
- Text on page
- 17,242 characters
- Page size
- 71 kB
- Answered
- OK (200), HTML
- Last read
- 7 Jul 2025
- In our index since
- 7 Jul 2025
- Safe search
- Not checked yet
- Links to it
- Linked from 1 site