Update src/escpos/escpos.py
Remove 'Literal[False]' as a return value type of the property 'device' Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
This commit is contained in:
parent
77f97a906a
commit
58be698b16
@ -133,7 +133,7 @@ class Escpos(object):
|
||||
self.close()
|
||||
|
||||
@property
|
||||
def device(self) -> Union[Literal[False], Literal[None], object]:
|
||||
def device(self) -> Union[Literal[None], object]:
|
||||
"""Implements a self-open mechanism.
|
||||
|
||||
An attempt to get the property before open the connection
|
||||
|
Loading…
x
Reference in New Issue
Block a user