python/typing · Discussions
Repository navigation
python typing Discussions
Pinned Discussions
Sort by: Latest activity
Categories, most helpful, and community links
Categories
LoadingCommunity links
Discussions
-
2
You must be logged in to vote
Widening generic types when calling methods in context.
randolf-scholz asked Oct 25, 2025 in Q&A · Unanswered 3 -
1
You must be logged in to vote
How to type universal class-based decorator?
tokarenko asked Nov 20, 2026 in Q&A · Unanswered 3 -
1
You must be logged in to vote
What are the actual allowed types of each individual overload?
bzoracler asked Jul 25, 2025 in Q&A · Unanswered 1 -
1
You must be logged in to vote
hunterhogan asked Feb 22, 2026 in Q&A · Unanswered 3CallableFunctionas a drop-in replacement forCallable -
1
You must be logged in to vote
Is a type variable with repeated constraints valid?
bzoracler asked Apr 8, 2026 in Q&A · Unanswered 2 -
2
You must be logged in to vote
Distribute return type over union
randolf-scholz asked Jul 16, 2025 in Q&A · Unanswered 1 -
1
You must be logged in to vote
generic type inference when combining containers with different element types
bitcleo asked Oct 17, 2026 in Q&A · Unanswered 1 -
1
You must be logged in to vote
How to use functools.wraps with method decorators
sfc-gh-bchinn asked Nov 25, 2025 in Q&A · Unanswered 2 -
1
You must be logged in to vote
Optinal in
ninanomenon asked May 13, 2026 in Q&A · Unanswered 2Callablewith self -
1
You must be logged in to vote
How to declare a generic type is covariant with new-style syntax?
DFEvans asked Oct 14, 2026 in Q&A · Unanswered 2 -
1
You must be logged in to vote
Can I allow implementors of a protocol to use any method parameter type as long as it conforms to a given protocol?
cwoelf asked Feb 26, 2025 in Q&A · Answered 1 -
1
You must be logged in to vote
What to do when I need to unpack a dictionary?
Kludex asked Dec 18, 2024 in Q&A · Unanswered 7 -
2
You must be logged in to vote
Static type assertions for testing
whitphx asked Jan 17, 2022 in Q&A · Answered 28 -
6
You must be logged in to vote
What are
JelleZijlstra asked Aug 9, 2021 in Q&A · Unanswered 6typing.IO,TextIO, andBinaryIOgood for? -
1
You must be logged in to vote
Supporting
Natuworkguy asked May 23, 2026 in Q&A · Answered 4Selffor Free Functions? -
1
You must be logged in to vote
Unbound ParamSpec, but why?
hannes-ucsc asked May 11, 2026 in Q&A · Answered 1 -
1
You must be logged in to vote
Deep interactions between
RBerga06 asked Jul 29, 2025 in Q&A · Answered 2Protocols andoverloads -
2
You must be logged in to vote
Proposal: Support tuple[T, N] syntax for fixed-length homogeneous tuples
exprator-python started Aug 11, 2025 in Polls 3 -
1
You must be logged in to vote
Does
rayansostenes asked Jul 24, 2024 in Q&A · Answered 8assert_typeis supposed to work withProtocol? -
39
You must be logged in to vote
Reasons for not allowing generics in
treykeown started Jul 1, 2023 in General 9ClassVar? -
1
You must be logged in to vote
problems implementing overloads on some flexible class methods
cjw296 asked Jul 8, 2025 in Q&A · Unanswered 17 -
2
You must be logged in to vote
mypy and logging.Logger subclasses
randolf-scholz asked Dec 16, 2021 in Q&A · Answered 5 -
1
You must be logged in to vote
Support for specifying type parameters at function call time (like
jonathanslenders started Feb 26, 2026 in General 1func[int]()) with runtime introspection -
1
You must be logged in to vote
randolf-scholz asked Jan 23, 2026 in Q&A · Unanswered 2@overloadwith multipleGeneric[Any] -
3
You must be logged in to vote
Does
PragmaTwice started Feb 22, 2026 in General 3converteralso support default argument in field specifiers ofdataclass_transform?