From e4341642029b93933c56fa2481f9bfda8e76a3e8 Mon Sep 17 00:00:00 2001 From: belono Date: Mon, 4 Sep 2023 12:36:34 +0200 Subject: [PATCH] Add type annotation to device.setter --- src/escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index c6ea6bf..549bdbb 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -142,7 +142,7 @@ class Escpos(object): return self._device @device.setter - def device(self, new_device): + def device(self, new_device: object): self._device = new_device def open(self):