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:
Benito López 2023-09-07 12:57:18 +02:00 committed by GitHub
parent 77f97a906a
commit 58be698b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ class Escpos(object):
self.close() self.close()
@property @property
def device(self) -> Union[Literal[False], Literal[None], object]: def device(self) -> Union[Literal[None], object]:
"""Implements a self-open mechanism. """Implements a self-open mechanism.
An attempt to get the property before open the connection An attempt to get the property before open the connection