GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — How should structural subtyping work for objects with slots but no variable declarations? · Issue #1367 · python/typing Closed Labels topic: otherOther topics not coveredOther topics not covered DescriptionConsider the snippet below: from typing import runtime_checkable, Protocol @runtime_checkable class HasX(Protocol): x: int class HasNothingButSlots: __slots__ = ("x",) def requires_object_with_x(obj: HasX) -> None: print(obj.x) requires_object_with_x(HasNothingButSlots()) Mypy does not see Currently, the runtime agrees with mypy: calling Who is correct: mypy or pyright? Activity
MetadataMetadataAssigneesLabelstopic: otherOther topics not coveredOther topics not covered ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |