PY-78822 Type argument for "Protocol" must be a type parameter is not reported by PyCharm

GitOrigin-RevId: 8e02ca094674c75bed86e1feffeac5909828f38c
This commit is contained in:
Petr
2025-05-20 18:48:27 +00:00
committed by intellij-monorepo-bot
parent f30dc5d254
commit 2f533480a1
4 changed files with 14 additions and 7 deletions
@@ -1164,7 +1164,7 @@ INSP.type.hints.cannot.inherit.from.plain.generic=Cannot inherit from plain 'Gen
INSP.type.hints.cannot.inherit.from.generic.multiple.times=Cannot inherit from 'Generic[...]' multiple times
INSP.type.hints.generic.or.protocol.should.list.all.type.variables=''Generic[...]'' or ''Protocol[...]'' should list all type variables ({0})
INSP.type.hints.illegal.literal.parameter='Literal' may be parameterized with literal ints, byte and unicode strings, bools, Enum values, None, other literal types, or type aliases to other literal types
INSP.type.hints.parameters.to.generic.must.all.be.type.variables=Parameters to 'Generic[...]' must all be type variables
INSP.type.hints.parameters.to.generic.must.all.be.type.variables=Parameters to ''{0,choice,0#Generic|1#Protocol}[...]'' must all be type variables
INSP.type.hints.parameters.to.generic.must.all.be.unique=Parameters to 'Generic[...]' must all be unique
INSP.type.hints.non.default.type.vars.cannot.follow.defaults=Non-default TypeVars cannot follow ones with defaults
INSP.type.hints.default.type.var.cannot.follow.type.var.tuple=TypeVar with a default value cannot follow TypeVarTuple