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 — `singledispatchmethod.register` fails with `typing.Self` annotation · Issue #130827 · python/cpython Open Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement DescriptionBug reportBug description:When using Minimal example: from functools import singledispatchmethod from typing import Self class Foo: @singledispatchmethod def bar(self: Self, arg: int | str) -> int | str: ... @bar.register def _(self: Self, arg: int) -> int: return arg foo = Foo() print(foo.bar(1)) The workaround is to remove the (Same for CPython versions tested on:3.13 Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement 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. |