mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix type
This commit is contained in:
@@ -214,7 +214,7 @@ class Key(InputEvent):
|
||||
yield "aliases", self.aliases, [self.key]
|
||||
|
||||
@property
|
||||
def name(self) -> str | None:
|
||||
def name(self) -> str:
|
||||
"""Name of a key suitable for use as a Python identifier."""
|
||||
return _key_to_identifier(self.key).lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user