fix mypy error (jaconv is using a import hack)
This commit is contained in:
parent
6b9fb0d8a1
commit
ca12c6c49d
@ -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:
|
||||
|
@ -7,7 +7,8 @@
|
||||
:copyright: Copyright (c) 2016 `python-escpos <https://github.com/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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user