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 — Does `field_specifier` support non-keyword arguments? · Issue #2170 · python/typing Open Labels topic: documentationDocumentation-related issues and PRsDocumentation-related issues and PRs DescriptionI was reading through the specification of
But from typing import dataclass_transform, Any def custom_field(default: object, *, init: bool = True) -> Any: ... @dataclass_transform(field_specifiers=(custom_field,)) def build(x): ... @build class A: x: int = custom_field(default=0) @build class B: x: int = custom_field(0) A() B()
My (uninformed) take is that this should be allowed -- Activity
MetadataMetadataAssigneesLabelstopic: documentationDocumentation-related issues and PRsDocumentation-related issues and PRs 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. |