Skip to content

Commit

Permalink
Add simple typing
Browse files Browse the repository at this point in the history
  • Loading branch information
akinnane committed Nov 16, 2020
1 parent 86f7404 commit ace8bfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nessus.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
import re
from functools import lru_cache
from typing import List, Dict

import boto3
import requests
import validators
import os


def verify_ssl():
Expand Down Expand Up @@ -137,7 +138,7 @@ def policy_details(policy_id):
return get(f"/policies/{policy_id}")


def list_scans():
def list_scans() -> Dict[str, List[Dict]]:
scans = get("/scans")
if "scans" not in scans or not scans["scans"]:
scans["scans"] = []
Expand Down

0 comments on commit ace8bfc

Please sign in to comment.