File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ executors:
10
10
11
11
machine-executor :
12
12
machine :
13
- image : ubuntu-2404:2024.05.1
13
+ image : ubuntu-2404:current
14
14
15
15
jobs :
16
16
lint :
43
43
command : mypy $PACKAGE_DIR $TESTS_DIR
44
44
45
45
test :
46
+ parameters :
47
+ python_version :
48
+ type : string
46
49
executor : machine-executor
47
50
steps :
48
51
- checkout
57
60
name : Setup Python
58
61
command : |
59
62
pyenv --version
60
- pyenv install -f 3.10
61
- pyenv global 3.10
63
+ pyenv install -f << parameters.python_version >>
64
+ pyenv global << parameters.python_version >>
62
65
63
66
- run :
64
67
name : Setup pip
@@ -81,4 +84,7 @@ workflows:
81
84
build :
82
85
jobs :
83
86
- lint
84
- - test
87
+ - test :
88
+ matrix :
89
+ parameters :
90
+ python_version : ["3.10", "3.11", "3.12.2"]
Original file line number Diff line number Diff line change @@ -432,6 +432,11 @@ def __contains__(self, key: str | int) -> bool:
432
432
'edge/1' in G._adj['node/1']['node/2']
433
433
0 in G._adj['node/1']['node/2']
434
434
"""
435
+ # HACK: This is a workaround for the fact that
436
+ # nxadb.MultiGraph does not yet support custom edge keys
437
+ if key == "-1" :
438
+ return False
439
+
435
440
if isinstance (key , int ):
436
441
key = self .__process_int_edge_key (key )
437
442
@@ -464,7 +469,7 @@ def __contains__(self, key: str | int) -> bool:
464
469
def __getitem__ (self , key : str | int ) -> EdgeAttrDict :
465
470
"""G._adj['node/1']['node/2']['edge/1']"""
466
471
# HACK: This is a workaround for the fact that
467
- # nxadb.MultiGraph does not yet support edge keys
472
+ # nxadb.MultiGraph does not yet support custom edge keys
468
473
if key == "-1" :
469
474
raise KeyError (key )
470
475
You can’t perform that action at this time.
0 commit comments