Showing posts with the label tuples

[FIXED] What is the canonical way to type empty __slots__ (or empty tuple)?

Issue If I type slots: class Foo: __slots__: Tuple[()] = tuple() Then, in strict mode, mypy (…

[FIXED] Incompatible types when assigning an empty tuple to a specialised variable

Issue I have a variable path , which should be a tuple of strings. I want to start with it set to a…