Skip to content Skip to sidebar Skip to footer
Showing posts with the label Typing

How To Define An Alias For A Type In Python For Type Hinting

How to define an alias for a type to use type hint: import typing type Ticker str # How to do this?… Read more How To Define An Alias For A Type In Python For Type Hinting

How To Reduce Boilerplate When Initializating Classes From Jsons In Python 3.5?

I have a set of python webservices that work with data objects they get via a JSON POSTs. In my old… Read more How To Reduce Boilerplate When Initializating Classes From Jsons In Python 3.5?

Correct Type Annotation For __init__

What is the correct type annotation for a __init__ function in python? class MyClass: ... Whic… Read more Correct Type Annotation For __init__

Recursive Type Annotations

I'm trying to introduce static type annotations to my codebase where applicable. One case is wh… Read more Recursive Type Annotations