Skip to content

Commit 755806f

Browse files
committed
chore: strict type annotations of code_annotations/
1 parent 2662bcf commit 755806f

File tree

16 files changed

+373
-200
lines changed

16 files changed

+373
-200
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,3 @@ default.db
7575
# Generated reports and test reports
7676
reports/*
7777
test_reports/*
78-
79-
**/.claude/settings.local.json

code_annotations/annotation_errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
22
List possible annotation error types.
33
"""
4-
from collections import namedtuple
54
import typing as t
5+
from collections import namedtuple
66

77
AnnotationError = namedtuple(
88
"AnnotationError", ["message", "symbol", "description"]
@@ -14,6 +14,7 @@
1414

1515
T = t.TypeVar('T', bound=AnnotationError)
1616

17+
1718
def add_error_type(message: str, symbol: str, description: str) -> AnnotationError:
1819
"""
1920
Create an AnnotationError instance and add it to TYPES.

0 commit comments

Comments
 (0)