Blog Archive
2024
- String casing in python
- Correctly typing cached functions
- NewType in python
- TypeVars and Unions in python
- Enums with superclasses
- Enums and refactoring
- Correctly typing recursive hierarchies in Python
- Solving a ForwardRef error in pydantic
2023
2020
2019
- Using itertools.product with dictionaries
- Using itertools.product instead of nested for loops
- Parsing a spacy json to a tree
- Recursively dealing with trees
- Getting spacy to only split on spaces