You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a proposed PEP 724 – Stricter Type Guards which may allow the is_ok and is_err type guards to work as expected in future versions of Python.
The linked PEP was withdrawn, however the same functionality was accepted as TypeIs.
It can be used starting from Python3.13, but there is also already a backport in typing_extensions. It is also already supported by type checkers like mypy.
I see two options for the project here:
start using from Python3.13 on (as soon as (if ?) it is supported by result)
already start using the backport for older Python versions
I would be happy to contribute (1. or 2).
The text was updated successfully, but these errors were encountered:
The linked PEP was withdrawn, however the same functionality was accepted as
TypeIs
.It can be used starting from Python3.13, but there is also already a backport in
typing_extensions
. It is also already supported by type checkers likemypy
.I see two options for the project here:
result
)I would be happy to contribute (1. or 2).
The text was updated successfully, but these errors were encountered: