Skip to content

1.1.0 requires python 3.8 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Neradoc opened this issue Feb 24, 2022 · 0 comments · Fixed by #4
Closed

1.1.0 requires python 3.8 #3

Neradoc opened this issue Feb 24, 2022 · 0 comments · Fixed by #4

Comments

@Neradoc
Copy link

Neradoc commented Feb 24, 2022

typing.Protocol and the / syntax for function arguments both require python 3.8.
https://www.python.org/dev/peps/pep-0570/
https://www.python.org/dev/peps/pep-0544/

Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adafruit_mprls
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/temp/venv/lib/python3.7/site-packages/adafruit_mprls.py", line 37, in <module>
    from adafruit_bus_device.i2c_device import I2CDevice
  File "/home/pi/temp/venv/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 13, in <module>
    from circuitpython_typing import ReadableBuffer, WriteableBuffer
  File "/home/pi/temp/venv/lib/python3.7/site-packages/circuitpython_typing/__init__.py", line 45
    def read(self, count: Optional[int] = None, /) -> Optional[bytes]:
                                                ^
SyntaxError: invalid syntax
>>>
>>> from typing import Protocol
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Protocol' from 'typing' (/usr/lib/python3.7/typing.py)
>>> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant