Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: use set instead of list
  • Loading branch information
HitaloM committed Feb 5, 2024
commit fbac75c0a81f65fa00cc5a6e51b5720380739156
2 changes: 1 addition & 1 deletion hydrogram/raw/core/primitives/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def read_bare(b: BytesIO, size: int) -> Union[int, Any]:
if size == 4:
e = int.from_bytes(b.read(4), "little")
b.seek(-4, 1)
if e in [BoolFalse.ID, BoolTrue.ID]:
if e in {BoolFalse.ID, BoolTrue.ID}:
return Bool.read(b)
return Int.read(b)

Expand Down