Skip to content

Commit

Permalink
ubuiltins: Fix broken classmethod decorator.
Browse files Browse the repository at this point in the history
Since classmethod is being redefined here, it broke Sphinx.

Fixes #86
  • Loading branch information
laurensvalk committed Jun 10, 2022
1 parent c8ff761 commit 19e49b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ubuiltins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
_bytearray = bytearray
_bytes = bytes
_callable = callable
_classmethod = classmethod
_complex = complex
_dict = dict
_float = float
Expand Down Expand Up @@ -585,7 +586,7 @@ def to_bytes(self, length: _int, byteorder: Literal["little", "big"]) -> _bytes:
Byte sequence that represents the integer.
"""

# @classmethod
@_classmethod
def from_bytes(cls, _bytes: _bytes, byteorder: Literal["little", "big"]) -> _int:
"""from_bytes(bytes, byteorder) -> int
Expand Down

0 comments on commit 19e49b5

Please sign in to comment.