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 — Spec and conformance tests disagree on converting constructors into callable for classes with `__new__` and `__init__` · Issue #2158 · python/typing Open Labels topic: conformance testsIssues with the conformance test suiteIssues with the conformance test suitetopic: typing specFor improving the typing specFor improving the typing spec DescriptionFor classes with both class B: """ __new__ and __init__ """ def __new__(cls, *args, **kwargs) -> Self: ... def __init__(self, x: int) -> None: ... reveal_type(accepts_callable(B)) # ``def (*args, **kwargs) -> B | def (x: int) -> B`` The conformance test says that typing/conformance/tests/constructors_callable.py Lines 54 to 64 in 20096ee
Activity
MetadataMetadataAssigneesLabelstopic: conformance testsIssues with the conformance test suiteIssues with the conformance test suitetopic: typing specFor improving the typing specFor improving the typing spec 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. |