tests: Update mypy to version 1.14.1 (#1715)
This commit is contained in:
parent
cc6646a448
commit
eb5366b991
|
|
@ -7,7 +7,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: ['3.8', '3.11']
|
||||
python-version: ['3.9', '3.13']
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -18,6 +18,6 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install mypy==1.4.0
|
||||
pip install mypy==1.14.1
|
||||
- name: Run mypy on direct
|
||||
run: python tests/run_mypy.py
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ class DistributedObjectAI(DistributedObjectBase):
|
|||
# setLocation destroys self._zoneData if we move away to
|
||||
# a different zone
|
||||
if self._zoneData is None:
|
||||
from otp.ai.AIZoneData import AIZoneData # type: ignore[import]
|
||||
from otp.ai.AIZoneData import AIZoneData # type: ignore[import-not-found]
|
||||
self._zoneData = AIZoneData(self.air, self.parentId, self.zoneId)
|
||||
return self._zoneData
|
||||
|
||||
|
|
@ -489,7 +489,7 @@ class DistributedObjectAI(DistributedObjectBase):
|
|||
# simultaneously on different lists of avatars, although they
|
||||
# should have different names.
|
||||
|
||||
from otp.ai import Barrier # type: ignore[import]
|
||||
from otp.ai import Barrier # type: ignore[import-not-found]
|
||||
context = self.__nextBarrierContext
|
||||
# We assume the context number is passed as a uint16.
|
||||
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@ class DistributedObjectUD(DistributedObjectBase):
|
|||
# simultaneously on different lists of avatars, although they
|
||||
# should have different names.
|
||||
|
||||
from otp.ai import Barrier # type: ignore[import]
|
||||
from otp.ai import Barrier # type: ignore[import-not-found]
|
||||
context = self.__nextBarrierContext
|
||||
# We assume the context number is passed as a uint16.
|
||||
self.__nextBarrierContext = (self.__nextBarrierContext + 1) & 0xffff
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ if hasattr(sys, 'getandroidapilevel'):
|
|||
signal = None
|
||||
else:
|
||||
try:
|
||||
import _signal as signal # type: ignore[import, no-redef]
|
||||
import _signal as signal # type: ignore[import-not-found, no-redef]
|
||||
except ImportError:
|
||||
signal = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue