[bindings] fix signatures in pyi files
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
# SPDX-License: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from Metadata import constmethod
|
||||
from BaseClass import BaseClass
|
||||
@@ -21,7 +23,7 @@ class Persistence(BaseClass):
|
||||
"""Memory size of the object in bytes."""
|
||||
|
||||
@constmethod
|
||||
def dumpContent(self, *, Compression: int = 3) -> bytearray:
|
||||
def dumpContent(self, Compression: int = 3) -> bytearray:
|
||||
"""
|
||||
dumpContent(Compression=3) -> bytearray
|
||||
|
||||
@@ -33,7 +35,7 @@ class Persistence(BaseClass):
|
||||
"""
|
||||
...
|
||||
|
||||
def restoreContent(self, obj: object) -> None:
|
||||
def restoreContent(self, obj: object, /) -> None:
|
||||
# TODO: Starting with Python 3.12, collections.abc.Buffer can be used for type hinting
|
||||
"""
|
||||
restoreContent(obj) -> None
|
||||
|
||||
Reference in New Issue
Block a user