mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
Add TYPE_CHECKING imports to fix unresolved-reference type bugs
This commit is contained in:
parent
3f4c5ac71e
commit
d3dde0b459
6 changed files with 22 additions and 7 deletions
|
|
@ -31,7 +31,10 @@ Usage:
|
|||
import difflib
|
||||
import re
|
||||
from dataclasses import dataclass, field
|
||||
from typing import List, Optional, Tuple, Any
|
||||
from typing import List, Optional, Tuple, Any, TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from tools.file_operations import PatchResult
|
||||
from enum import Enum
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue