Skip to content

Commit 7f53512

Browse files
authored
Merge pull request #108 from oslokommune/mypy-fix
Fix mypy errors and lock the version
2 parents ea34b8c + 526aba9 commit 7f53512

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

okdata/sdk/pipelines/resources/pipeline_instance.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
from typing import Optional
23

34
from okdata.sdk.pipelines.resources.pipeline_base import PipelineBase
45
from okdata.sdk.pipelines.resources.pipeline_input import PipelineInput
@@ -34,9 +35,9 @@ def __init__(
3435
taskConfig: object = None,
3536
# TODO: Remove this once all users have been updated to use
3637
# `pipelineProcessorId` instead.
37-
pipelineArn: str = None,
38+
pipelineArn: Optional[str] = None,
3839
# TODO: Make this required once `pipelineArn` has been phased out.
39-
pipelineProcessorId: str = None,
40+
pipelineProcessorId: Optional[str] = None,
4041
):
4142
self.sdk = sdk
4243
self._id = id

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ commands =
3232
[testenv:mypy]
3333
skip_install = true
3434
deps =
35-
mypy
35+
mypy==0.991
3636
types-requests==2.25.12
3737
-rrequirements.txt
3838
commands =

0 commit comments

Comments
 (0)