Skip to content

Commit 7247e3b

Browse files
committed
fix: TYPE_CHECKING
1 parent 896a182 commit 7247e3b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CLIArgs(
1515
ruff: bool = False
1616

1717
@classmethod
18-
def parse(cls, posargs: list[str]) -> "CLIArgs":
18+
def parse(cls, posargs: list[str]) -> CLIArgs:
1919
"""Parse command line arguments from the provided list.
2020
2121
Args:

tools/logger/logger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import logging
22
import sys
3-
4-
from google.auth.credentials import Credentials
3+
from typing import TYPE_CHECKING
54

65
from tools.logger.type import LogType
76

7+
if TYPE_CHECKING:
8+
from google.auth.credentials import Credentials
9+
810

911
class Logger(logging.Logger):
1012
"""Logger.

0 commit comments

Comments
 (0)