-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Open
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
from warnings import deprecated
from typing import Protocol
class FooProtocol(Protocol):
pass
class Base:
pass
@deprecated("")
class DeprecatedBase:
pass
class FooWithBase(Base, FooProtocol):
pass
class FooWithDeprecatedBase(DeprecatedBase, FooProtocol):
pass
assert FooWithBase._is_protocol is False
assert FooWithDeprecatedBase._is_protocol is True
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error