Remove wrongly placed double qoutes (#5530)

* Update baconian_cipher.py

* Update join.py

* Updated type hint
This commit is contained in:
Rohan R Bharadwaj 2021-10-22 22:44:08 +05:30 committed by GitHub
parent 0ca1279997
commit 2ddd81df21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ def decode(coded: str) -> str:
return decoded.strip()
if "__name__" == "__main__":
if __name__ == "__main__":
from doctest import testmod
testmod()

View File

@ -3,7 +3,7 @@ Program to join a list of strings with a given separator
"""
def join(separator: str, separated: list) -> str:
def join(separator: str, separated: list[str]) -> str:
"""
>>> join("", ["a", "b", "c", "d"])
'abcd'
@ -26,7 +26,7 @@ def join(separator: str, separated: list) -> str:
return joined.strip(separator)
if "__name__" == "__main__":
if __name__ == "__main__":
from doctest import testmod
testmod()