add type checking
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
def write(name, file):
|
||||
def write(name: str, file: str):
|
||||
with open(f"{file}.txt", "a") as f:
|
||||
# add a new line
|
||||
f.write(name + "\n")
|
||||
|
||||
Reference in New Issue
Block a user