You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 3, in a
File "<stdin>", line 3, in <listcomp>
File "/.venvs/test/lib/python3.10/site-packages/accessify/access.py", line 75, in private_wrapper
raise InaccessibleDueToItsProtectionLevelException(
accessify.errors.InaccessibleDueToItsProtectionLevelException: Test.b() is inaccessible due to its protection level
Removing the private/protected decorator makes the error go away, as does rewriting the list comp to a for-loop assignment. Perhaps related to Python 3's scoping for list comprehensions - can there be a workaround?
Tested on Python 3.10.6
The text was updated successfully, but these errors were encountered:
Calls to functions marked as private/protected throw an error when inside a list comprehension. Example:
Error:
In accessify, it seems to be raised here:
Removing the private/protected decorator makes the error go away, as does rewriting the list comp to a for-loop assignment. Perhaps related to Python 3's scoping for list comprehensions - can there be a workaround?
Tested on Python 3.10.6
The text was updated successfully, but these errors were encountered: