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 — Consider making `staticmethod` and `classmethod` generic · Issue #132457 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementTypeshed defines
It makes sense, because they are very callable-like. However: >>> staticmethod[int] Traceback (most recent call last): File "<python-input-0>", line 1, in <module> staticmethod[int] ~~~~~~~~~~~~^^^^^ TypeError: type 'staticmethod' is not subscriptable >>> classmethod[int] Traceback (most recent call last): File "<python-input-1>", line 1, in <module> classmethod[int] ~~~~~~~~~~~^^^^^ TypeError: type 'classmethod' is not subscriptable We should consider making them generics in runtime as well. @AlexWaygood @JelleZijlstra thoughts? Linked PRsActivity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-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. |