Skip to content

Commit 98c7d90

Browse files
hugovkradarhere
andauthored
Variables can be None; update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent eff78cb commit 98c7d90

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ ignore = [
117117
"E221", # Multiple spaces before operator
118118
"E226", # Missing whitespace around arithmetic operator
119119
"E241", # Multiple spaces after ','
120-
"PYI034", # flake8-pyi: typing.Self added in Python 3.10
120+
"PYI034", # flake8-pyi: typing.Self added in Python 3.11
121121
]
122122

123123
[tool.ruff.lint.per-file-ignores]

src/PIL/TiffTags.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323

2424
class _TagInfo(NamedTuple):
25-
value: int
25+
value: int | None
2626
name: str
27-
type: int
28-
length: int
29-
enum: dict[int, str]
27+
type: int | None
28+
length: int | None
29+
enum: dict[int, str] | None
3030

3131

3232
class TagInfo(_TagInfo):

0 commit comments

Comments
 (0)