Autogenerated type safety parameterisation of all methods

This commit is contained in:
Ian Renton
2026-09-20 20:16:31 +01:00
parent 324dd1414b
commit 93ea27510f
131 changed files with 20 additions and 283 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from enum import Enum
@@ -46,7 +44,7 @@ class Mode(str, Enum):
return not (self.is_cw or self.is_phone)
@staticmethod
def from_name(name: str) -> Mode | None:
def from_name(name: str) -> "Mode | None":
"""Convert a string to an enum mode using the alias table."""
if not name: