Below the Hoods

Python Imports Named Tuples


from lungmask import mask, utils

def nop(item: Any, *_: Any, **__: Any) -> Any:


NOP function overload to silent imported libraries.


return item

# Make lungmask tqdm quiet

mask.tqdm = nop

utils.tqdm = nop


Python Strings Python RegEx RegEx Cheatsheet Python Advanced Typings todo: python string types e.g. r'', b'', u'' Context Manager from Generator

Python Utils

  • listify, stringify, tuplify (type hint up to length 10??)
  • Pytorch __call__ type hint

Argument Parsing:

Inherited Dicts