mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-03 09:19:59 +00:00
update organize import trigger, update capabilities data, fix mypy (#654)
* update organize import trigger * update capabilities data * fix mypy error (jaconv is using a import hack)
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -12,7 +12,7 @@
|
|||||||
"editor.formatOnPaste": true,
|
"editor.formatOnPaste": true,
|
||||||
"python.formatting.provider": "black",
|
"python.formatting.provider": "black",
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": true
|
"source.organizeImports": "explicit"
|
||||||
},
|
},
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
|
Submodule capabilities-data updated: 375135d552...e3bf6056ee
@@ -4,7 +4,10 @@
|
|||||||
I doubt that this currently works correctly.
|
I doubt that this currently works correctly.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import types
|
||||||
|
import typing
|
||||||
|
|
||||||
|
jaconv: typing.Optional[types.ModuleType]
|
||||||
try:
|
try:
|
||||||
import jaconv
|
import jaconv
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@@ -7,7 +7,8 @@
|
|||||||
:copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_
|
:copyright: Copyright (c) 2016 `python-escpos <https://github.com/python-escpos>`_
|
||||||
:license: MIT
|
:license: MIT
|
||||||
"""
|
"""
|
||||||
|
import types
|
||||||
|
import typing
|
||||||
|
|
||||||
import hypothesis.strategies as st
|
import hypothesis.strategies as st
|
||||||
import pytest
|
import pytest
|
||||||
@@ -111,6 +112,7 @@ class TestMagicEncode:
|
|||||||
assert driver.output == b"\x1bt\x00? ist teuro."
|
assert driver.output == b"\x1bt\x00? ist teuro."
|
||||||
|
|
||||||
|
|
||||||
|
jaconv: typing.Optional[types.ModuleType]
|
||||||
try:
|
try:
|
||||||
import jaconv
|
import jaconv
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Reference in New Issue
Block a user