Skip to content

Commit

Permalink
pyright ignore assign to __class__ of Protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Eden Ross Duff, MSc, DDiv <[email protected]>
  • Loading branch information
rjdbcm authored Dec 18, 2024
1 parent 9529110 commit be2d481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blastpipe/backports.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_identifiers(self: IsTemplatePre311) -> List[str]: # pragma: defer to st
@classmethod
def extend_with(cls: type[IsTemplatePre311], instance: _T) -> _T:
"""Extend the class with the mixin instance."""
instance.__class__ = type(
instance.__class__ = type( # pyright: ignore
f'{instance.__class__.__name__}With{cls.__name__}',
(instance.__class__, cls),
{},
Expand Down

0 comments on commit be2d481

Please sign in to comment.