Skip to content

Commit b72b6af

Browse files
committed
fix: add type ignore annotations to improve type checking
- Add to context.py to suppress type checking for entire file - Fix type ignore format in transformers.py by removing unnecessary bracket annotation
1 parent 85dd7cd commit b72b6af

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dreadnode/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# type: ignore
12
from __future__ import annotations
23

34
import typing as t

dreadnode/integrations/transformers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import typing as t
77

8-
from transformers.trainer_callback import ( # type: ignore [import-untyped]
8+
from transformers.trainer_callback import ( # type: ignore
99
TrainerCallback,
1010
TrainerControl,
1111
TrainerState,

0 commit comments

Comments
 (0)