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 Oct 23, 2023
1 parent 41a9b4d commit 5412cfc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions code_data/_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def bytes_to_blocks(
found_constants.found_index(0)

for opcode, arg, n_args, offset, next_offset in _parse_bytes(b):

# Compute the jump targets, initially with just the byte offset
# Once we know all the block targets, we will transform to be block offsets
processed_arg = to_arg(
Expand Down Expand Up @@ -187,7 +186,6 @@ def blocks_to_bytes(

# Iterate through all blocks and change jump instructions to offsets
while changed_instruction_lengths:

current_instruction_offset = 0
# First go through and update all the instruction blocks
for block_index, block in enumerate(blocks):
Expand Down
1 change: 0 additions & 1 deletion code_data/_code_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


def to_code_data(code: CodeType) -> CodeData:

if sys.version_info >= (3, 8):
posonlyargcount = code.co_posonlyargcount
else:
Expand Down
1 change: 0 additions & 1 deletion code_data/_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def normalize(x: T) -> T:

if isinstance(x, CodeData):
return cast(
T,
Expand Down

0 comments on commit 5412cfc

Please sign in to comment.