def foo(value: Optional[str]) -> None:
print(value.replace("bar", "baz"))
mypy and vscode both point out this will fail when value is None, but my pycharm seems to think this is perfectly fine. git config --global alias.chpull '!f() { git checkout "$1" && git pull; }; f'