Python typing Module
This page shows the popular functions and classes defined in the
typing module.
The items are ordered by their popularity in 40,000 open source Python projects.
If you can not find a good example below, you can try
the search function
to search modules.
-
1. List()Used in 2046 projects
-
2. Optional()Used in 1614 projects
-
3. Dict()Used in 1576 projects
-
4. Tuple()Used in 1523 projects
-
5. Union()Used in 1514 projects
-
6. Any()Used in 1346 projects
-
7. Callable()Used in 1075 projects
-
8. Iterable()Used in 751 projects
-
9. Set()Used in 605 projects
-
10. Type()Used in 526 projects
-
11. Sequence()Used in 499 projects
-
12. Iterator()Used in 403 projects
-
13. TypeVar()Used in 383 projects
-
14. NamedTuple()Used in 341 projects
-
15. Generator()Used in 313 projects
-
16. Mapping()Used in 280 projects
-
17. cast()Used in 261 projects
-
18. TYPE_CHECKINGUsed in 255 projects
-
19. IOUsed in 151 projects
-
20. Generic()Used in 136 projects
-
21. Text()Used in 112 projects
-
22. DefaultDict()Used in 100 projects
-
23. Pattern()Used in 93 projects
-
24. TextIO()Used in 92 projects
-
25. Awaitable()Used in 80 projects
-
26. BinaryIO()Used in 77 projects
-
27. MutableMapping()Used in 71 projects
-
28. FrozenSet()Used in 70 projects
-
29. NewType()Used in 65 projects
-
30. NoReturn()Used in 62 projects
-
31. Match()Used in 62 projects
-
32. Deque()Used in 57 projects
-
33. get_type_hints()Used in 56 projects
-
34. Collection()Used in 54 projects
-
35. ClassVar()Used in 54 projects
-
36. AnyStr()Used in 49 projects
-
37. Hashable()Used in 40 projects
-
38. ContextManager()Used in 37 projects
-
39. Coroutine()Used in 35 projects
-
40. AsyncGenerator()Used in 31 projects
-
Used in 30 projects
-
42. Container()Used in 29 projects
-
43. AbstractSet()Used in 28 projects
-
44. AsyncIterator()Used in 26 projects
-
45. Sized()Used in 24 projects
-
46. overload()Used in 24 projects
-
47. GenericMeta()Used in 20 projects
-
48. Counter()Used in 18 projects
-
49. AsyncIterable()Used in 17 projects
-
50. Literal()Used in 16 projects
-
51. Protocol()Used in 16 projects
-
52. ValuesView()Used in 14 projects
-
53. KeysView()Used in 12 projects
-
54. _GenericAlias()Used in 10 projects
-
55. TypedDict()Used in 10 projects
-
56. ItemsView()Used in 10 projects
-
57. ByteString()Used in 10 projects
-
58. ForwardRef()Used in 9 projects
-
59. no_type_check()Used in 9 projects
-
60. SupportsInt()Used in 8 projects
-
61. _ForwardRef()Used in 8 projects
-
62. UnionMeta()Used in 7 projects
-
63. SupportsFloat()Used in 7 projects
-
64. MutableSet()Used in 7 projects
-
Used in 7 projects
-
66. ChainMap()Used in 6 projects
-
67. get_args()Used in 5 projects