Skip to content

Commit a90045b

Browse files
authored
Update ty's JSON schema (SchemaStore#4823)
1 parent d22a7c4 commit a90045b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schemas/json/ty.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
]
323323
},
324324
"duplicate-kw-only": {
325-
"title": "detects dataclass definitions with more than once usages of `KW_ONLY`",
325+
"title": "detects dataclass definitions with more than one usage of `KW_ONLY`",
326326
"description": "## What it does\nChecks for dataclass definitions with more than one field\nannotated with `KW_ONLY`.\n\n## Why is this bad?\n`dataclasses.KW_ONLY` is a special marker used to\nemulate the `*` syntax in normal signatures.\nIt can only be used once per dataclass.\n\nAttempting to annotate two different fields with\nit will lead to a runtime error.\n\n## Examples\n```python\nfrom dataclasses import dataclass, KW_ONLY\n\n@dataclass\nclass A: # Crash at runtime\n b: int\n _1: KW_ONLY\n c: str\n _2: KW_ONLY\n d: bytes\n```",
327327
"default": "error",
328328
"oneOf": [

0 commit comments

Comments
 (0)