Skip to content

Commit

Permalink
MNT: Update type hints in try_json_loads
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Tang-Kong <[email protected]>
  • Loading branch information
aberges-SLAC and tangkong authored Nov 19, 2024
1 parent 4505c07 commit 483c53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/grep_more_ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def clean_ansi(text: str = None) -> str:
return ansi_escape.sub('', text)


def try_json_loads(text: str = None) -> object:
def try_json_loads(text: Optional[str] = None) -> Optional[str]:
"""
Try/except wrapper for debugging bad pseudo-json strings.
"""
Expand Down

0 comments on commit 483c53e

Please sign in to comment.