1
0
mirror of synced 2024-12-04 19:17:55 +01:00

Fix some typos

This commit is contained in:
Stepland 2020-06-08 23:00:11 +02:00
parent 4dbecf0a79
commit f79da0c612
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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