Any way to express that a dict is expected to have a key(s) but don't care about other keys?
by Brett Cannon June 19, 2023
by Brett Cannon June 19, 2023
June 19, 2023
17
35
5
6
7
10
PEP 655: Marking individual TypedDict items as required or potentially-missing
by David Foster Feb. 23, 2022
by David Foster Feb. 23, 2022
Feb. 23, 2022
10
31
April 12, 2021
3
2
March 19, 2021
2
2
isinstance(instance, protocol) with protocol members without default values (PEP 544)
by Paul Dest March 19, 2021
by Paul Dest March 19, 2021
March 19, 2021
2
3
isinstance(instance, protocol) with protocol members without default values (PEP 544)
by Paul Dest March 18, 2021
by Paul Dest March 18, 2021
March 18, 2021
1
0
7
22
March 18, 2021
2
1