Kalmat / PyMonCtl

Cross-Platform module which provides a set of features to get info on and control monitors/screens/displays.
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Py 3.7 Syntax Error on 0.7 #9

Closed cman122887 closed 4 months ago

cman122887 commented 11 months ago
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/me/virtualenv/pymonctl/lib/python3.7/site-packages/pymonctl/__init__.py", line 22, in <module>
    from ._main import (getAllMonitors, getAllMonitorsDict, getMonitorsCount, getPrimary,
  File "/Users/me/virtualenv/pymonctl/lib/python3.7/site-packages/pymonctl/_main.py", line 643
    _updateScreens: Optional[_UpdateScreens] = None
    ^
SyntaxError: annotated name '_updateScreens' can't be global

which seems to have been fixed in 3.8? https://github.com/python/cpython/commit/de2aea0ff02fa9486365ce9d215bef150fae3a0b

If you are able to repro on your end it might be worth considering removal of the 3.7 classifier

Kalmat commented 7 months ago

Hi! First off, sorry for my late reply. I've been very busy these last months, so I completely missed your issue. Secondly, thanks a lot for your help!

I will remove 3.7 classifier in next version. Thank you again!