Skip to content

Commit 99a4340

Browse files
authored
chore(examples): add mypy config for example scripts (hiero-ledger#1179)
Signed-off-by: Sarthak Tyagi <[email protected]>
1 parent 42004c2 commit 99a4340

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
99

1010

1111
### Added
12+
- examples/mypy.ini for stricter type checking in example scripts
1213
- Added a GitHub Actions workflow that reminds contributors to link pull requests to issues.
1314
- Added `__str__` and `__repr__` methods to `AccountInfo` class for improved logging and debugging experience (#1098)
1415
- Added Good First Issue (GFI) management and frequency documentation to clarify maintainer expectations and SDK-level GFI governance.

examples/mypy.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[mypy]
2+
# Enforce typing in *your code*
3+
disallow_untyped_defs = True
4+
disallow_untyped_calls = True
5+
warn_return_any = True
6+
7+
# Silence untyped third-party libraries
8+
ignore_missing_imports = True
9+
follow_imports = skip
10+
11+
# Prevent attribute errors on untyped modules
12+
allow_any_expr = True
13+
allow_any_generics = True

0 commit comments

Comments
 (0)