Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent d848ba7 commit 2cf9b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cbor2/_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,10 @@ def decode_from_bytes(self, buf: bytes) -> object:
return retval

@overload
def _decode_length(self, subtype: int) -> int:
...
def _decode_length(self, subtype: int) -> int: ...

@overload
def _decode_length(self, subtype: int, allow_indefinite: Literal[True]) -> int | None:
...
def _decode_length(self, subtype: int, allow_indefinite: Literal[True]) -> int | None: ...

def _decode_length(self, subtype: int, allow_indefinite: bool = False) -> int | None:
if subtype < 24:
Expand Down
1 change: 1 addition & 0 deletions cbor2/tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command-line tool for CBOR diagnostics and testing"""

from __future__ import annotations

import argparse
Expand Down

0 comments on commit 2cf9b87

Please sign in to comment.