Skip to content

Python 3.9 typing incompatibility. #31

Description

@RedTTG

extism isn't compatible with python 3.9's typing

    from extism import Plugin
  File ".venv/lib/python3.9/site-packages/extism/__init__.py", line 6, in <module>
    from .extism import (
  File ".venv/lib/python3.9/site-packages/extism/extism.py", line 238, in <module>
    class Function:
  File ".venv/lib/python3.9/site-packages/extism/extism.py", line 243, in Function
    def __init__(self, namespace: str | None, name: str, args, returns, f, *user_data):
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions