From 7106639a9bfe39fff51f7adde718e684559dacf3 Mon Sep 17 00:00:00 2001 From: Rohan R Bharadwaj <89947037+Rohanrbharadwaj@users.noreply.github.com> Date: Fri, 22 Oct 2021 21:25:17 +0530 Subject: [PATCH 1/3] Update baconian_cipher.py --- ciphers/baconian_cipher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ciphers/baconian_cipher.py b/ciphers/baconian_cipher.py index 027fbc50e89d..f146ba91b78f 100644 --- a/ciphers/baconian_cipher.py +++ b/ciphers/baconian_cipher.py @@ -83,7 +83,7 @@ def decode(coded: str) -> str: return decoded.strip() -if "__name__" == "__main__": +if __name__ == "__main__": from doctest import testmod testmod() From 97ad4e4bd356984ec9899abec2505af0be3244fe Mon Sep 17 00:00:00 2001 From: Rohan R Bharadwaj <89947037+Rohanrbharadwaj@users.noreply.github.com> Date: Fri, 22 Oct 2021 21:26:07 +0530 Subject: [PATCH 2/3] Update join.py --- strings/join.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/join.py b/strings/join.py index 0cb88b76065d..fe4a437129e3 100644 --- a/strings/join.py +++ b/strings/join.py @@ -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() From af1e34cb41242c9a4ae4a65779cc34d23cd881ed Mon Sep 17 00:00:00 2001 From: Rohan R Bharadwaj <89947037+Rohanrbharadwaj@users.noreply.github.com> Date: Fri, 22 Oct 2021 21:42:33 +0530 Subject: [PATCH 3/3] Updated type hint --- strings/join.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/join.py b/strings/join.py index fe4a437129e3..c17ddd144597 100644 --- a/strings/join.py +++ b/strings/join.py @@ -3,7 +3,7 @@ """ -def join(separator: str, separated: list) -> str: +def join(separator: str, separated: list[str]) -> str: """ >>> join("", ["a", "b", "c", "d"]) 'abcd'