Table of contents > Appendix: Color-coded annotations
Appendix: Color-coded annotations
Below we list all types that have a dedicated color for the socket.
- str;
- bool;
- dict;
- list;
- tuple;
- collections.abc.Iterable;
- collections.abc.Iterator;
- collections.abc.Callable;
- all these number-related types and combinations have the same dedicated color:
- int;
- float;
- (int, float) or (float, int);
- (int, None) or (None, int);
- (int, type(None)) or (type(None), int);
- (float, None) or (None, float);
- (float, type(None)) or (type(None), float);
- (int, float, None) or any combination;
- (int, float, type(None)) or any combination;
Sockets without a type hint also have a color associated with them (in the default theme the color is grey);
All other type hints that don't belong to one of the types/combinations mentioned above are associated with the same color (in the default theme the is color is a light pink);
Dedicated colors for other types like set and frozenset might be added in the future.
Table of contents