The Adafruit_EPD releases v2.11.3 and v2.11.2 generate this error, but earlier releases work fine.
(.venv) pi@pi2b:~/e-ink-bonnet_2_13 $ python3 example_1.py Traceback (most recent call last): File "/home/pi/e-ink-bonnet_2_13/example_1.py", line 4, in <module> from adafruit_epd.epd import Adafruit_EPD File "/home/pi/e-ink-bonnet_2_13/.venv/lib/python3.9/site-packages/adafruit_epd/epd.py", line 32, in <module> class Adafruit_EPD: # pylint: disable=too-many-instance-attributes, too-many-public-methods, too-many-arguments File "/home/pi/e-ink-bonnet_2_13/.venv/lib/python3.9/site-packages/adafruit_epd/epd.py", line 250, in Adafruit_EPD def set_black_buffer(self, index: Union[0, 1], inverted: bool) -> None: File "/usr/lib/python3.9/typing.py", line 268, in inner return func(*args, **kwds) File "/usr/lib/python3.9/typing.py", line 345, in __getitem__ return self._getitem(self, parameters) File "/usr/lib/python3.9/typing.py", line 456, in Union parameters = tuple(_type_check(p, msg) for p in parameters) File "/usr/lib/python3.9/typing.py", line 456, in <genexpr> parameters = tuple(_type_check(p, msg) for p in parameters) File "/usr/lib/python3.9/typing.py", line 157, in _type_check raise TypeError(f"{msg} Got {arg!r:.100}.") TypeError: Union[arg, ...]: each arg must be a type. Got 0.
Steps to reproduce:
import digitalio import busio import board from adafruit_epd.epd import Adafruit_EPD
This error was generated on:
The Adafruit_EPD releases v2.11.3 and v2.11.2 generate this error, but earlier releases work fine.
(.venv) pi@pi2b:~/e-ink-bonnet_2_13 $ python3 example_1.py Traceback (most recent call last): File "/home/pi/e-ink-bonnet_2_13/example_1.py", line 4, in <module> from adafruit_epd.epd import Adafruit_EPD File "/home/pi/e-ink-bonnet_2_13/.venv/lib/python3.9/site-packages/adafruit_epd/epd.py", line 32, in <module> class Adafruit_EPD: # pylint: disable=too-many-instance-attributes, too-many-public-methods, too-many-arguments File "/home/pi/e-ink-bonnet_2_13/.venv/lib/python3.9/site-packages/adafruit_epd/epd.py", line 250, in Adafruit_EPD def set_black_buffer(self, index: Union[0, 1], inverted: bool) -> None: File "/usr/lib/python3.9/typing.py", line 268, in inner return func(*args, **kwds) File "/usr/lib/python3.9/typing.py", line 345, in __getitem__ return self._getitem(self, parameters) File "/usr/lib/python3.9/typing.py", line 456, in Union parameters = tuple(_type_check(p, msg) for p in parameters) File "/usr/lib/python3.9/typing.py", line 456, in <genexpr> parameters = tuple(_type_check(p, msg) for p in parameters) File "/usr/lib/python3.9/typing.py", line 157, in _type_check raise TypeError(f"{msg} Got {arg!r:.100}.") TypeError: Union[arg, ...]: each arg must be a type. Got 0.
Steps to reproduce:
import digitalio import busio import board from adafruit_epd.epd import Adafruit_EPD