ubuiltins: Fix broken classmethod decorator.

Since classmethod is being redefined here, it broke Sphinx.

Fixes https://github.com/pybricks/pybricks-api/issues/86
This commit is contained in:
Laurens Valk
2022-07-04 14:33:17 +02:00
parent 0982d5d65b
commit ac9585b7a5
+2 -1
View File
@@ -45,6 +45,7 @@ _bool = bool
_bytearray = bytearray
_bytes = bytes
_callable = callable
_classmethod = classmethod
_complex = complex
_dict = dict
_float = float
@@ -585,7 +586,7 @@ class int:
Byte sequence that represents the integer.
"""
# @classmethod
@_classmethod
def from_bytes(cls, _bytes: _bytes, byteorder: Literal["little", "big"]) -> _int:
"""from_bytes(bytes, byteorder) -> int