-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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 TrueCPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error