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