Skip to content

Commit

Permalink
Improve mypy issue resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
syn-4ck committed Apr 13, 2021
1 parent 14c964f commit 4001e8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions detect_secrets/audit/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
from contextlib import contextmanager
from functools import lru_cache
from typing import Any
from typing import Callable
from typing import cast
from typing import Iterator
Expand Down Expand Up @@ -45,7 +44,7 @@ def open_file(filename: str) -> 'LineGetter':
def get_raw_secret_from_file(
secret: PotentialSecret,
line_getter_factory: Callable[[str], 'LineGetter'] = open_file,
) -> Any:
) -> Optional[str]:
"""
We're analyzing the contents straight from the baseline, and therefore, we don't know
the secret value (by design). However, we have line numbers, filenames, and how we detected
Expand Down

0 comments on commit 4001e8e

Please sign in to comment.