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
{{ message }}
Repository navigation
Pyright warnings in strict mode: type is partially unknown for op.create_index #1191
Example of op.create_index: op.create_index(op.f('ix_token_expired_at'), 'token', ['expired_at'], unique=False)
warning: Type of "create_index" is partially unknown
reason (most likely): columns parameter has type Sequence[str | TextClause | Function[Unknown]]. Function generic is missing type parameter.
Activity
CaselIT commentedon Mar 6, 2023
Hi,
Thanks for re-reporting. Sorry for moving the previous issue
AlexanderPodorov commentedon Mar 6, 2023
Hi, no worries, let me know if you need anything.
sqla-tester commentedon Mar 6, 2023
CaselIT has proposed a fix for this issue in the main branch:
Correctly account for generic in Function https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4492
zzzeek commentedon Mar 7, 2023
funny that mypy doesnt complain
CaselIT commentedon Mar 7, 2023
Mypy is a bit leaking in some regards.
Is seels it also doesn't know that enume are iterable :/ (not related to this change)
Fix unknown types reported by pyright