Fix functions definition

This commit is contained in:
Gregoo 2025-01-29 18:12:39 +01:00
parent 56ad9fba13
commit 728e0050b3
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ if TYPE_CHECKING:
# Grab the list of checkboxes to create a list of SQL columns # Grab the list of checkboxes to create a list of SQL columns
def migration_0007(self: 'BrickSQL') -> dict[str, Any]: def migration_0007(self: 'BrickSQL', /) -> dict[str, Any]:
records = self.fetchall('checkbox/list') records = self.fetchall('checkbox/list')
return { return {

View File

@ -74,7 +74,7 @@ class BrickPart(RebrickablePart):
return True return True
# A identifier for HTML component # A identifier for HTML component
def html_id(self) -> str: def html_id(self, /) -> str:
components: list[str] = ['part'] components: list[str] = ['part']
if self.fields.figure is not None: if self.fields.figure is not None: