issues Search Results · repo:davidfstr/trycast language:Python
Filter by
23 results
(64 ms)23 results
indavidfstr/trycast (press backspace or delete to remove)checkcast can never return None, as it would throw in that case. Wouldn t it make more sense to have it return just T
instead of Optional[T]? That would make its usage much easier, as I do have to do a ...
enhancement
rd-andreas-tollkoetter
- 2
- Opened 28 days ago
- #34
Currently trying to pip install trycast and doing import trycast causes mypy to raise an error for the package:
$ cat asd.py
import trycast
$ mypy asd.py
asd.py:1: error: Cannot find implementation or ...
tusharsadhwani
- Opened on Jul 28, 2024
- #32
The TypeForm PEP draft is nearly done (as of 2025-05-18) and should be implemented soon:
- [ ] Alter signatures of public functions to accept TypeForm from typing_extensions or from Python 3.14+
enhancement
davidfstr
- Opened on Jul 5, 2024
- #31
trycast is currently tested against pytype 2022.3.21, which supports Python 3.8-3.9. The latest version of
pytype, 2024.04.11, supports Python 3.8-3.11
Please upgrade pytype to a more-modern version that ...
enhancement
davidfstr
- 1
- Opened on Apr 12, 2024
- #30
It appears that the type statement in Python 3.12 generates TypeAliasType objects at runtime which are similar to the
existing ForwardRef objects which trycast() already needs to understand to follow forward-references ...
feature
davidfstr
- Opened on Mar 31, 2024
- #29
Python 3.11 added support for generic TypedDicts.
For example, the following generic TypedDict can (probably) be defined now:
T = TypeVar( T , bound=Union[int, float, complex])
class Point(TypedDict, ...
feature
davidfstr
- Opened on Mar 31, 2024
- #28
PEP 655 was accepted in Python 3.11. It introduces new typing qualifiers Required[] and NotRequired[] which trycast will
need to be able to recognize.
Until this support is added, I expect trycast() and ...
feature
davidfstr
- 2
- Opened on Mar 31, 2024
- #27
The Never type was introduced in Python 3.11. Trycast should recognize it in the same places that NoReturn is accepted.
feature
davidfstr
- Opened on Mar 27, 2024
- #26
PEP 705 was recently accepted for Python 3.13. It introduces a new typing qualifier ReadOnly[] which trycast will need
to be able to recognize.
Until this support is added, I expect trycast() and isassignable() ...
feature
davidfstr
- Opened on Mar 1, 2024
- #25
Hi David 👋,
I have only today found out about this project via the related TypeForm PEP discussion, which I would like to bring
forward and for which I have written to you separately.
For the past few ...
sg495
- 5
- Opened on Jan 17, 2024
- #24

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.