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 is disabled due to typing issues #68

Open
andersonshatch opened this issue Jun 27, 2023 · 0 comments
Open

pyright is disabled due to typing issues #68

andersonshatch opened this issue Jun 27, 2023 · 0 comments

Comments

@andersonshatch
Copy link
Collaborator

pyright is disabled in pre-commit because of the following typing issues

migrate-groups-users/contrast_api.py
  migrate-groups-users/contrast_api.py:36:38 - error: Argument missing for parameter "v" (reportGeneralTypeIssues)
  migrate-groups-users/contrast_api.py:202:25 - error: Argument of type "Unknown | object | None" cannot be assigned to parameter "__obj" of type "Sized" in function "len"
    Type "Unknown | object | None" cannot be assigned to type "Sized"
      "object" is incompatible with protocol "Sized"
        "__len__" is not present (reportGeneralTypeIssues)
  migrate-groups-users/contrast_api.py:201:27 - error: Argument of type "Unknown | object | None" cannot be assigned to parameter "__iterable" of type "Iterable[Unknown]" in function "extend"
    Type "Unknown | object | None" cannot be assigned to type "Iterable[Unknown]"
      "object" is incompatible with protocol "Iterable[Unknown]"
        "__iter__" is not present (reportGeneralTypeIssues)
migrate-groups-users/contrast_migrate_users_groups.py
  migrate-groups-users/contrast_migrate_users_groups.py:52:34 - error: Argument missing for parameter "v" (reportGeneralTypeIssues)
  migrate-groups-users/contrast_migrate_users_groups.py:56:42 - error: Argument of type "Literal['source']" cannot be assigned to parameter "default" of type "Undefined" in function "__init__"
    "Literal['source']" is incompatible with "Undefined" (reportGeneralTypeIssues)
  migrate-groups-users/contrast_migrate_users_groups.py:62:34 - error: Argument missing for parameter "v" (reportGeneralTypeIssues)
  migrate-groups-users/contrast_migrate_users_groups.py:66:42 - error: Argument of type "Literal['destination']" cannot be assigned to parameter "default" of type "Undefined" in function "__init__"
    "Literal['destination']" is incompatible with "Undefined" (reportGeneralTypeIssues)
7 errors, 0 warnings, 0 informations 
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