6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-18 02:55:17 +00:00
tutor/requirements
Régis Behmo 3ce022bee4 fix: "TypeError: Parameters to Generic[...]" error
People running typing-extensions==3.10 faced this error for just any tutor command:

    $ tutor version
    ...
    Traceback (most recent call last):
      File "/usr/local/bin/tutor", line 5, in <module>
        from tutor.commands.cli import main
      File "/usr/local/lib/python3.8/dist-packages/tutor/commands/cli.py", line 7, in <module>
        from tutor import exceptions, fmt, hooks, utils
      File "/usr/local/lib/python3.8/dist-packages/tutor/hooks/__init__.py", line 7, in <module>
        from . import actions, contexts, filters, priorities
      File "/usr/local/lib/python3.8/dist-packages/tutor/hooks/actions.py", line 18, in <module>
        class ActionCallback(Contextualized, t.Generic[P]):
      File "/usr/lib/python3.8/typing.py", line 261, in inner
        return func(*args, **kwds)
      File "/usr/lib/python3.8/typing.py", line 890, in __class_getitem__
        raise TypeError(
    TypeError: Parameters to Generic[...] must all be type variables

We fix this error by requiring a more recent version of typing-extensions.

See: https://discuss.openedx.org/t/tutor-v15-python-error-when-running-on-quickstart/8910/2
2022-12-13 08:02:15 +01:00
..
base.in fix: "TypeError: Parameters to Generic[...]" error 2022-12-13 08:02:15 +01:00
base.txt feat: upgrade to olive 2022-12-12 16:55:07 +01:00
dev.in docs: migrate to scriv to manage changelog 2022-11-24 16:15:15 +01:00
dev.txt feat: upgrade to olive 2022-12-12 16:55:07 +01:00
docs.in docs: generate reference docs automatically 2021-10-14 12:59:57 +02:00
docs.txt feat: upgrade to olive 2022-12-12 16:55:07 +01:00
plugins.txt feat: upgrade to olive 2022-12-12 16:55:07 +01:00