[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-08-12 03:39:32 +00:00
parent b944eec224
commit 6e742ab167

View File

@ -83,6 +83,9 @@ def octal_to_binary(octal: str) -> str:
if negative: if negative:
return "-0b" + "".join(str(e) for e in binary) return "-0b" + "".join(str(e) for e in binary)
return "0b" + "".join(str(e) for e in binary) return "0b" + "".join(str(e) for e in binary)
if __name__ == "__main__": if __name__ == "__main__":
from doctest import testmod from doctest import testmod
testmod() testmod()