Skip to content

Commit

Permalink
Moved type hint to BYTES_PER_ROW
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 27, 2023
1 parent 6e97dd5 commit 0aebd57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/PcfFontFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
PCF_GLYPH_NAMES = 1 << 7
PCF_BDF_ACCELERATORS = 1 << 8

BYTES_PER_ROW = [
BYTES_PER_ROW: list[Callable[[int], int]] = [
lambda bits: ((bits + 7) >> 3),
lambda bits: ((bits + 15) >> 3) & ~1,
lambda bits: ((bits + 31) >> 3) & ~3,
Expand Down Expand Up @@ -210,7 +210,7 @@ def _load_bitmaps(

data = fp.read(bitmapsize)

pad: Callable[[int], int] = BYTES_PER_ROW[padindex]
pad = BYTES_PER_ROW[padindex]
mode = "1;R"
if bitorder:
mode = "1"
Expand Down

0 comments on commit 0aebd57

Please sign in to comment.