mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user