Skip to content

Commit

Permalink
Bump mypy from 1.13.0 to 1.14.1 (#5193)
Browse files Browse the repository at this point in the history
* Bump mypy from 1.13.0 to 1.14.1

Bumps [mypy](https://github.com/python/mypy) from 1.13.0 to 1.14.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.13.0...v1.14.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* type stubs: upgrade for newer stricter mypy 1.14

https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael R. Crusoe <[email protected]>
  • Loading branch information
dependabot[bot] and mr-c authored Jan 3, 2025
1 parent fe9a811 commit e49bc5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
18 changes: 7 additions & 11 deletions contrib/mypy-stubs/pubsub/core/topictreetraverser.pyi
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
from .topicobj import Topic as Topic
from enum import IntEnum

from _typeshed import Incomplete

from .topicobj import Topic
from typing import Optional

class ITopicTreeVisitor: ...

class TreeTraversal(IntEnum):
DEPTH: Incomplete
BREADTH: Incomplete
MAP: Incomplete
DEPTH = 0
BREADTH = 1
MAP = 2

class TopicTreeTraverser:
def __init__(self, visitor: ITopicTreeVisitor = ...) -> None: ...
def __init__(self, visitor: Optional[ITopicTreeVisitor] = None) -> None: ...
def setVisitor(self, visitor: ITopicTreeVisitor) -> None: ...
def traverse(
self, topicObj: Topic, how: TreeTraversal = ..., onlyFiltered: bool = ...
) -> None: ...
def traverse(self, topicObj: Topic, how: TreeTraversal = ..., onlyFiltered: bool = True) -> None: ...
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ astroid>=3,<4
sphinx-autodoc-typehints>=1.24.0,<3
sphinxcontrib-autoprogram==0.1.9
cwltest>=2.2.20211116163652
mypy==1.13.0
mypy==1.14.1
types-aws-xray-sdk
types-boto<2.49.18.20241020
types-Flask-Cors
Expand Down
18 changes: 9 additions & 9 deletions src/toil/batchSystems/abstractBatchSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@


class BatchJobExitReason(enum.IntEnum):
FINISHED: int = 1
FINISHED = 1
"""Successfully finished."""
FAILED: int = 2
FAILED = 2
"""Job finished, but failed."""
LOST: int = 3
LOST = 3
"""Preemptable failure (job's executing host went away)."""
KILLED: int = 4
KILLED = 4
"""Job killed before finishing."""
ERROR: int = 5
ERROR = 5
"""Internal error."""
MEMLIMIT: int = 6
MEMLIMIT = 6
"""Job hit batch system imposed memory limit."""
MISSING: int = 7
MISSING = 7
"""Job disappeared from the scheduler without actually stopping, so Toil killed it."""
MAXJOBDURATION: int = 8
MAXJOBDURATION = 8
"""Job ran longer than --maxJobDuration, so Toil killed it."""
PARTITION: int = 9
PARTITION = 9
"""Job was not able to talk to the leader via the job store, so Toil declared it failed."""

@classmethod
Expand Down

0 comments on commit e49bc5f

Please sign in to comment.