forked from Mirror/pmbootstrap
pmb: Add lots of type hints (MR 2464)
This commit is contained in:
parent
d05d57b37e
commit
225d8b30a0
71 changed files with 566 additions and 325 deletions
|
@ -107,7 +107,7 @@ class Config:
|
|||
else:
|
||||
raise ValueError(f"Invalid dotted key: {dotted_key}")
|
||||
|
||||
def __setattr__(self, key: str, value: Any):
|
||||
def __setattr__(self, key: str, value: Any) -> None:
|
||||
"""Allow for setattr() to be used with a dotted key
|
||||
to set nested dictionaries (e.g. "mirrors.alpine")."""
|
||||
keys = key.split(".")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue