summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-09-30 09:56:37 -0700
committerJarrod Millman <jarrod.millman@gmail.com>2022-09-30 09:57:24 -0700
commitc7088c5f8bcc5e20123709cfdfa2f98c6be85980 (patch)
tree476740555a1e952efd45b97132efa50f3da29c1e
parent07783941f075d6e474308265563b37845cccadbd (diff)
downloadnetworkx-c7088c5f8bcc5e20123709cfdfa2f98c6be85980.tar.gz
Update linters (#6006)
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--networkx/utils/heaps.py2
-rw-r--r--requirements/developer.txt2
3 files changed, 4 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 07671dd1..c2bd513b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,11 +3,11 @@
repos:
- repo: https://github.com/psf/black
- rev: 22.6.0
+ rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
- rev: v2.37.3
+ rev: v2.38.2
hooks:
- id: pyupgrade
args: [--py38-plus]
diff --git a/networkx/utils/heaps.py b/networkx/utils/heaps.py
index f64d1286..3db27906 100644
--- a/networkx/utils/heaps.py
+++ b/networkx/utils/heaps.py
@@ -142,7 +142,7 @@ class PairingHeap(MinHeap):
__slots__ = ("left", "next", "prev", "parent")
def __init__(self, key, value):
- super(PairingHeap._Node, self).__init__(key, value)
+ super().__init__(key, value)
# The leftmost child.
self.left = None
# The next sibling.
diff --git a/requirements/developer.txt b/requirements/developer.txt
index 912592dc..40e389fa 100644
--- a/requirements/developer.txt
+++ b/requirements/developer.txt
@@ -1,2 +1,2 @@
pre-commit>=2.20
-mypy>=0.961
+mypy>=0.981