remove type comment where type is annotated
This commit is contained in:
parent
66a2e78e16
commit
de8cf0086f
@ -20,7 +20,7 @@ except ImportError:
|
||||
pass # noqa
|
||||
import sys
|
||||
|
||||
from . import config
|
||||
from . import config, escpos
|
||||
from . import printer as escpos_printer_module
|
||||
from . import version
|
||||
|
||||
@ -617,7 +617,7 @@ def main() -> None:
|
||||
globals()[target_command](**command_arguments)
|
||||
|
||||
|
||||
def demo(printer, **kwargs) -> None:
|
||||
def demo(printer: escpos.Escpos, **kwargs) -> None:
|
||||
"""Print demos.
|
||||
|
||||
Called when CLI is passed `demo`. This function
|
||||
|
@ -23,7 +23,7 @@ def test_raise_error_wrongly():
|
||||
raise escpos.Error("This should raise an AttributeError.")
|
||||
|
||||
|
||||
def tests_raise_error():
|
||||
def tests_raise_error() -> None:
|
||||
"""raise error the right way"""
|
||||
with pytest.raises(escpos.exceptions.Error):
|
||||
raise escpos.exceptions.Error("This should raise an error.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user