-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve type annotations in spiderfoot/target.py (#1777)
* Improve type annotations in target.py * Create `TargetAlias` for better typing * Annotate `alias` * Update documented types * Simplify `TargetAlias` definition * Use `typing.Dict` instead of `dict` * Use `typing.List` instead of `list` * Refactor `TargetAlias` to not use `Literal` `typing.Literal` is not available in Python 3.7. * Conditionally use `TypedDict` * Describe version check * Remove `TYPE_CHECKING` check
- Loading branch information
Showing
1 changed file
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters