Skip to content

Commit

Permalink
round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Jan 12, 2024
1 parent c04df80 commit 4ab89f2
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/twisted/logger/_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from zope.interface import Interface, implementer

from constantly import NamedConstant, Names # type: ignore[import-untyped]
from constantly import NamedConstant, Names

from ._interfaces import ILogObserver, LogEvent
from ._levels import InvalidLogLevelError, LogLevel
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/logger/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from datetime import datetime as DateTime
from typing import Any, Callable, Iterator, Mapping, Optional, Union, cast

from constantly import NamedConstant # type: ignore[import-untyped]
from constantly import NamedConstant

from twisted.python._tzhelper import FixedOffsetTimeZone
from twisted.python.failure import Failure
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/logger/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
from typing import AnyStr, Iterable, Optional

from constantly import NamedConstant # type: ignore[import-untyped]
from constantly import NamedConstant
from incremental import Version

from twisted.python.deprecate import deprecatedProperty
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/logger/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import IO, Any, AnyStr, Dict, Iterable, Optional, Union, cast
from uuid import UUID

from constantly import NamedConstant # type: ignore[import-untyped]
from constantly import NamedConstant

from twisted.python.failure import Failure
from ._file import FileLogObserver
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/logger/_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from zope.interface import implementer

from constantly import NamedConstant # type: ignore[import-untyped]
from constantly import NamedConstant

from twisted.python.compat import currentframe
from ._format import formatEvent
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/positioning/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from zope.interface import implementer

from constantly import NamedConstant, Names # type: ignore[import-untyped]
from constantly import NamedConstant, Names

from twisted.positioning import ipositioning
from twisted.python.util import FancyEqMixin
Expand Down
4 changes: 2 additions & 2 deletions src/twisted/test/test_rebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def test_FileRebuild(self) -> None:
sibpath(__file__, "myrebuilder1.py"),
os.path.join(self.fakelibPath, "myrebuilder.py"),
)
from twisted_rebuild_fakelib import (
myrebuilder, # type: ignore[import-not-found]
from twisted_rebuild_fakelib import ( # type: ignore[import-not-found]
myrebuilder,
)

a = myrebuilder.A()
Expand Down
4 changes: 2 additions & 2 deletions src/twisted/trial/test/test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ def test_first(self) -> None: pass
pathEntry = package.parent().path
sys.path.insert(0, pathEntry)
self.addCleanup(sys.path.remove, pathEntry)
from twisted_toptobottom_temp import (
test_missing, # type: ignore[import-not-found]
from twisted_toptobottom_temp import ( # type: ignore[import-not-found]
test_missing,
)

self.addCleanup(sys.modules.pop, "twisted_toptobottom_temp")
Expand Down
4 changes: 2 additions & 2 deletions src/twisted/trial/test/test_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ def foo():
# since import is a synthetic thing that we made up just for this test,
# it's a local type ignore rather than being present in the mypy config
# file like everything else
from twisted_private_helper import (
missingsourcefile, # type: ignore[import-not-found]
from twisted_private_helper import ( # type: ignore[import-not-found]
missingsourcefile,
)

self.addCleanup(sys.modules.pop, "twisted_private_helper")
Expand Down

0 comments on commit 4ab89f2

Please sign in to comment.