diff --git a/.vscode/settings.json b/.vscode/settings.json index a850fc9..01b93af 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,7 +12,7 @@ "editor.formatOnPaste": true, "python.formatting.provider": "black", "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" }, "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, diff --git a/capabilities-data b/capabilities-data index 375135d..e3bf605 160000 --- a/capabilities-data +++ b/capabilities-data @@ -1 +1 @@ -Subproject commit 375135d552e3fe65cbd1462b8b8d56c401b13ae7 +Subproject commit e3bf6056ee75cf70ffaccb925081fffa7ad6ced5 diff --git a/src/escpos/katakana.py b/src/escpos/katakana.py index b20ac67..20c7d3f 100644 --- a/src/escpos/katakana.py +++ b/src/escpos/katakana.py @@ -4,7 +4,10 @@ I doubt that this currently works correctly. """ +import types +import typing +jaconv: typing.Optional[types.ModuleType] try: import jaconv except ImportError: diff --git a/test/test_magicencode.py b/test/test_magicencode.py index 77d1575..6c7b849 100644 --- a/test/test_magicencode.py +++ b/test/test_magicencode.py @@ -7,7 +7,8 @@ :copyright: Copyright (c) 2016 `python-escpos `_ :license: MIT """ - +import types +import typing import hypothesis.strategies as st import pytest @@ -111,6 +112,7 @@ class TestMagicEncode: assert driver.output == b"\x1bt\x00? ist teuro." +jaconv: typing.Optional[types.ModuleType] try: import jaconv except ImportError: