Skip to content
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

pyright errors in generated types #185

Open
KrisThielemans opened this issue Oct 5, 2024 · 0 comments
Open

pyright errors in generated types #185

KrisThielemans opened this issue Oct 5, 2024 · 0 comments

Comments

@KrisThielemans
Copy link

https://github.com/ETSInitiative/PRDdefinition/tree/a279d316d47f073768dd4d63bb668051d9e445e2

$ pyright  python/prd/*py
/home/sirfuser/devel/PRDdefinition/python/prd/_binary.py
  /home/sirfuser/devel/PRDdefinition/python/prd/_binary.py:635:16 - error: Object of type "Annotated" is not callable (reportCallIssue)
  /home/sirfuser/devel/PRDdefinition/python/prd/_binary.py:659:16 - error: Object of type "Annotated" is not callable (reportCallIssue)
/home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:23:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:24:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:25:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:26:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:27:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:28:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:29:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:30:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:31:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:32:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:33:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:34:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/_dtypes.py:35:5 - error: Argument of type "Annotated" cannot be assigned to parameter "key" of type "type | GenericAlias" in function "__setitem__"
    Type "Annotated" is not assignable to type "type | GenericAlias"
      "Annotated" is not assignable to "type"
      "Annotated" is not assignable to "GenericAlias" (reportArgumentType)
/home/sirfuser/devel/PRDdefinition/python/prd/types.py
  /home/sirfuser/devel/PRDdefinition/python/prd/types.py:261:29 - error: Variable not allowed in type expression (reportInvalidTypeForm)
/home/sirfuser/devel/PRDdefinition/python/prd/yardl_types.py
  /home/sirfuser/devel/PRDdefinition/python/prd/yardl_types.py:273:29 - error: Argument of type "void" cannot be assigned to parameter "iter1" of type "Iterable[_T1@__new__]" in function "__new__"
    "void" is incompatible with protocol "Iterable[_T1@__new__]"
      "__iter__" is not present (reportArgumentType)
  /home/sirfuser/devel/PRDdefinition/python/prd/yardl_types.py:273:32 - error: Argument of type "void" cannot be assigned to parameter "iter2" of type "Iterable[_T2@__new__]" in function "__new__"
    "void" is incompatible with protocol "Iterable[_T2@__new__]"
      "__iter__" is not present (reportArgumentType)
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

No branches or pull requests

1 participant