Skip to content

Commit d287832

Browse files
authored
Merge pull request #320 from input-output-hk/check_with_pyright
Check types with pyright
2 parents 322e7e6 + 38f985b commit d287832

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ repos:
4444
entry: mypy
4545
language: system
4646
types: [python]
47+
- id: pyright
48+
name: pyright
49+
entry: pyright
50+
language: system
51+
types: [python]

cardano_clusterlib/clusterlib_klass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def cli(
267267
# Network.Socket.connect: <socket: X>: resource exhausted (Resource temporarily unavailable)
268268
# or
269269
# MuxError (MuxIOException writev: resource vanished (Broken pipe)) "(sendAll errored)"
270+
err_msg = ""
270271
for __ in range(3):
271272
retcode = None
272273
with subprocess.Popen(

cardano_clusterlib/transaction_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,7 @@ def submit_tx(
15051505
else wait_blocks
15061506
)
15071507
txid = ""
1508+
err = None
15081509
for r in range(20):
15091510
err = None
15101511

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# linting
44
mypy~=1.16.1
55
pyrefly~=0.22.0
6+
pyright~=1.1.404
67
pre-commit~=4.2.0
78

89
build

0 commit comments

Comments
 (0)