[bindings] fix signatures in pyi files
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod
|
||||
@@ -33,20 +37,20 @@ class Array2D(BaseClass):
|
||||
"""The number of columns in the array."""
|
||||
|
||||
@constmethod
|
||||
def getRow(self, value: Any) -> Any:
|
||||
def getRow(self, value: Any, /) -> Any:
|
||||
"""
|
||||
Get the row given the first column value
|
||||
"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def getValue(self, row: int, column: int) -> Any:
|
||||
def getValue(self, row: int, column: int, /) -> Any:
|
||||
"""
|
||||
Get the value at the given row and column
|
||||
"""
|
||||
...
|
||||
|
||||
def setValue(self, row: int, column: int, value: Any):
|
||||
def setValue(self, row: int, column: int, value: Any, /):
|
||||
"""
|
||||
Set the value at the given row and column
|
||||
"""
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, Final, List
|
||||
@@ -52,19 +56,19 @@ class Array3D(BaseClass):
|
||||
"""
|
||||
...
|
||||
|
||||
def setDepthValue(self, value: Any):
|
||||
def setDepthValue(self, value: Any, /):
|
||||
"""
|
||||
Set the column value at the given depth
|
||||
"""
|
||||
...
|
||||
|
||||
def setValue(self, depth: int, row: int, column: int, value: Any):
|
||||
def setValue(self, depth: int, row: int, column: int, value: Any, /):
|
||||
"""
|
||||
Set the value at the given depth, row, and column
|
||||
"""
|
||||
...
|
||||
|
||||
def setRows(self, depth: int, value: int):
|
||||
def setRows(self, depth: int, value: int, /):
|
||||
"""
|
||||
Set the number of rows at the given depth
|
||||
"""
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, no_args, sequence_protocol
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, Dict
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import List
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export
|
||||
from ModelProperty import ModelProperty
|
||||
from typing import Final
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Metadata import export, constmethod, forward_declarations, class_declarations, sequence_protocol
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, overload
|
||||
|
||||
Reference in New Issue
Block a user