Fix some typos
This commit is contained in:
parent
4dbecf0a79
commit
f79da0c612
@ -120,13 +120,13 @@ class Memon_legacy(StrictSchema):
|
||||
class Memon_0_1_0(StrictSchema):
|
||||
version = fields.String(required=True, validate=validate.OneOf(["0.1.0"]))
|
||||
metadata = fields.Nested(MemonMetadata_0_1_0, required=True)
|
||||
data = fields.Dict(keys=fields.String(), values=MemonChart_0_1_0(), required=True)
|
||||
data = fields.Dict(keys=fields.String(), values=fields.Nested(MemonChart_0_1_0), required=True)
|
||||
|
||||
|
||||
class Memon_0_2_0(StrictSchema):
|
||||
version = fields.String(required=True, validate=validate.OneOf(["0.2.0"]))
|
||||
metadata = fields.Nested(MemonMetadata_0_2_0, required=True)
|
||||
data = fields.Dict(keys=fields.String(), values=MemonChart_0_1_0(), required=True)
|
||||
data = fields.Dict(keys=fields.String(), values=fields.Nested(MemonChart_0_1_0), required=True)
|
||||
|
||||
|
||||
def _search_and_load(file_or_folder: Path) -> Any:
|
||||
|
@ -39,7 +39,7 @@ class NotePosition:
|
||||
return self.x + 4 * self.y
|
||||
|
||||
@classmethod
|
||||
def from_index(cls: Type[NotePosition], index: int) -> "NotePosition":
|
||||
def from_index(cls: Type["NotePosition"], index: int) -> "NotePosition":
|
||||
if not (0 <= index < 16):
|
||||
raise ValueError(f"Note position index out of range : {index}")
|
||||
|
||||
@ -79,7 +79,7 @@ class Timing:
|
||||
class Chart:
|
||||
level: Decimal
|
||||
timing: Optional[Timing] = None
|
||||
notes: List[Union[TapNote, LongNote]]
|
||||
notes: List[Union[TapNote, LongNote]] = field(default_factory=list)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
Loading…
Reference in New Issue
Block a user