python/typing · Discussions

python · GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Pinned Discussions

Welcome to Python Type School!

Announcements

srittau

form
Form · chạm để nhập

Sort by:Latest activity

Latest activity

Date created

Top: Past day

Top: Past week

Top: Past month

Top: Past year

Top: All

Filter by label

Filter Use alt + click/return to exclude labels.

Open

Closed

Locked

Unlocked

Answered

Unanswered

Verified

All

Categories, most helpful, and community links

Categories

View all discussions

Announcements

General

Polls

Q&A

Reviews

LoadingCommunity links

Code of conduct

typing.python.org/en/latest

Discussions

You must be logged in to vote

Distribute return type over union

randolf-scholz

asked

Jul 16, 2025 in

Q&A

· Unanswered

@randolf-scholz
@ryux1
@randolf-scholz
@ryux1

1

You must be logged in to vote

What are typing.IO, TextIO, and BinaryIO good for?

JelleZijlstra

asked

Aug 9, 2021 in

Q&A

· Unanswered

@JelleZijlstra
@srittau
@gvanrossum
@JelleZijlstra
@srittau
@gvanrossum

6

You must be logged in to vote

Is a type variable with repeated constraints valid?

bzoracler

asked

Apr 8, 2026 in

Q&A

· Unanswered

@bzoracler
@lul-cas
@bzoracler
@lul-cas

1

You must be logged in to vote

Supporting Self for Free Functions?

Natuworkguy

asked

May 23, 2026 in

Q&A

· Answered

@Natuworkguy
@JelleZijlstra
@RBerga06
@Natuworkguy
@JelleZijlstra
@RBerga06

4

You must be logged in to vote

Unbound ParamSpec, but why?

hannes-ucsc

asked

May 11, 2026 in

Q&A

· Answered

@hannes-ucsc
@randolf-scholz
@hannes-ucsc
@randolf-scholz

1

You must be logged in to vote

Optinal in Callable with self

ninanomenon

asked

May 13, 2026 in

Q&A

· Unanswered

1

You must be logged in to vote

Is is_typeddict with Generics supposed to eval to false?

topic: other

Other topics not covered

semohr

asked

Apr 21, 2026 in

Q&A

· Unanswered

3

You must be logged in to vote

Deep interactions between Protocols and overloads

RBerga06

asked

Jul 29, 2025 in

Q&A

· Answered

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

You must be logged in to vote

Does assert_type is supposed to work with Protocol?

rayansostenes

asked

Jul 24, 2024 in

Q&A

· Answered

8

You must be logged in to vote

Reasons for not allowing generics in ClassVar?

treykeown

started

Jul 1, 2023 in

General

9

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

You must be logged in to vote

mypy and logging.Logger subclasses

randolf-scholz

asked

Dec 16, 2021 in

Q&A

· Answered

5

You must be logged in to vote

Support for specifying type parameters at function call time (like func[int]()) with runtime introspection

jonathanslenders

started

Feb 26, 2026 in

General

1

You must be logged in to vote

@overload with multiple Generic[Any]

randolf-scholz

asked

Jan 23, 2026 in

Q&A

· Unanswered

2

You must be logged in to vote

CallableFunction as a drop-in replacement for Callable

hunterhogan

asked

Feb 22, 2026 in

Q&A

· Unanswered

2

You must be logged in to vote

Does converter also support default argument in field specifiers of dataclass_transform?

PragmaTwice

started

Feb 22, 2026 in

General

3

You must be logged in to vote

Proposal: KeyType and ElementType for TypedDicts (also, Map)

tmke8

started

Jun 16, 2023 in

General

19

You must be logged in to vote

What is the idiomatic way of reusing key/values of TypedDict when total=False and True is needed?

andresdelfino

asked

Jan 15, 2026 in

Q&A

· Answered

3

You must be logged in to vote

Type hint for attribute that might not exist

cjw296

asked

Jan 23, 2025 in

Q&A

· Unanswered

14

You must be logged in to vote

Returing generic type from indirect factory methods?

pmhahn

asked

Jan 26, 2026 in

Q&A

· Unanswered

2

You must be logged in to vote

Immutable Sequence of float with length 3 as argument

RubendeBruin

started

Jan 28, 2026 in

General

1

You must be logged in to vote

Should type checkers trust assert statements with mutable values?

randolf-scholz

started

Jan 21, 2026 in

General

2

You must be logged in to vote

Typing for a MutableMapping that contains specific key-value pairs

dmi-dmi-dmi

asked

Jul 22, 2022 in

Q&A

· Unanswered

4

You must be logged in to vote

Clarifying appropriate use cases for Literal types in the guides

u-harshitha007

started

Jan 11, 2026 in

General

1

Previous

1

2

3

4

5

16

17

Next

form
Form · chạm để nhập
1 5