Skip to content

Commit

Permalink
Use Optional instead of | None.
Browse files Browse the repository at this point in the history
  • Loading branch information
getreuer committed Dec 5, 2024
1 parent 355f9f9 commit 788f4aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/python/qmk/cli/generate/keyboard_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""
import bisect
import dataclasses
from typing import Optional

from milc import cli

Expand Down Expand Up @@ -140,7 +141,7 @@ class LayoutKey:
y: float
w: float = 1.0
h: float = 1.0
hand: str | None = None
hand: Optional[str] = None

@staticmethod
def from_json(key_json):
Expand Down

0 comments on commit 788f4aa

Please sign in to comment.