Skip to content Skip to sidebar Skip to footer
Showing posts with the label Type Annotation

How Do I Annotate A Type Which Has An Extra Attribute With Mypy?

I have an ast.UnaryOp object, but I manually added a parent attribute (see answer). How do I annota… Read more How Do I Annotate A Type Which Has An Extra Attribute With Mypy?