mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
Variables can be None; update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
eff78cb514
commit
98c7d90af6
|
@ -117,7 +117,7 @@ ignore = [
|
||||||
"E221", # Multiple spaces before operator
|
"E221", # Multiple spaces before operator
|
||||||
"E226", # Missing whitespace around arithmetic operator
|
"E226", # Missing whitespace around arithmetic operator
|
||||||
"E241", # Multiple spaces after ','
|
"E241", # Multiple spaces after ','
|
||||||
"PYI034", # flake8-pyi: typing.Self added in Python 3.10
|
"PYI034", # flake8-pyi: typing.Self added in Python 3.11
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
|
|
@ -22,11 +22,11 @@ from typing import NamedTuple
|
||||||
|
|
||||||
|
|
||||||
class _TagInfo(NamedTuple):
|
class _TagInfo(NamedTuple):
|
||||||
value: int
|
value: int | None
|
||||||
name: str
|
name: str
|
||||||
type: int
|
type: int | None
|
||||||
length: int
|
length: int | None
|
||||||
enum: dict[int, str]
|
enum: dict[int, str] | None
|
||||||
|
|
||||||
|
|
||||||
class TagInfo(_TagInfo):
|
class TagInfo(_TagInfo):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user