mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-11-01 08:52:03 +01:00
fix(ex4): add wraps to every functions;
mypy compliance
This commit is contained in:
1 parent
1dfeee81e3
commit
1cf669e6f8
6 files changed
+60
-268
No files matched your search
@@ -34,7 +34,6 @@ def memory_vault() -> dict[str, Callable]:
|
||||
storage = {}
|
||||
|
||||
def store(to_store: dict[str, str]) -> None:
|
||||
nonlocal storage
|
||||
for data in to_store:
|
||||
storage[data] = to_store[data]
|
||||
|
||||
@@ -47,7 +46,7 @@ def memory_vault() -> dict[str, Callable]:
|
||||
return {"store": store, "recall": recall}
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
print("===mage_counter===\n")
|
||||
count = mage_counter()
|
||||
print(f"1 : {count()}")
|
||||
|
||||
Reference in new issue
Block a user