import os
def info(arg: str):
if arg and (var := os.environ.get("ENV")):
raise RuntimeError(f"{arg}: {var}")
gives me:
λ pyanalyze b.py
var may be used uninitialized (code: possibly_undefined_name)
In b.py at line 6
3:
4: def info(arg: str):
5: if arg and (var := os.environ.get("ENV")):
6: raise RuntimeError(f"{arg}: {var}")
^
gives me: