Commit b24e469
Benjamin Moody
MultiHeaderMixin: declare types of object attributes.
mypy (and likely other static analysis tools) will complain if an
object attribute is used without being defined either in the class or
the class's __init__ method.
The MultiHeaderMixin class is not public and not meant to be
instantiated at all, but refers to attributes that are defined by the
MultiRecord class which inherits from it. Declare the types of these
attributes here so that mypy knows they exist.1 parent 21e8674 commit b24e469
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
601 | 605 | | |
602 | 606 | | |
603 | 607 | | |
| |||
0 commit comments