diff options
| author | Scott Gasch <[email protected]> | 2022-04-27 07:46:40 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-04-27 07:46:40 -0700 |
| commit | 21612b3a2ecaed6bf9fec16891bee9bdeb006081 (patch) | |
| tree | 855f3cd33c2321aa409f17265d8149ac6b4a0882 | |
| parent | 7a43ca82e9e832c17a92fe65d73bb3686f5f24e6 (diff) | |
Oops, update type hints in geocode.
| -rw-r--r-- | geocode.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,13 +1,13 @@ #!/usr/bin/env python3 -# © Copyright 2021-2022, Scott Gasch +# © Copyright 2022, Scott Gasch """Wrapper around US Census address geocoder API described here: https://www2.census.gov/geo/pdfs/maps-data/data/Census_Geocoder_User_Guide.pdf""" import logging import re -from typing import Dict, Optional +from typing import Any, Dict, Optional import requests from bs4 import BeautifulSoup @@ -18,7 +18,7 @@ import string_utils logger = logging.getLogger(__name__) -def geocode_address(address: str) -> Optional[Dict[str, str]]: +def geocode_address(address: str) -> Optional[Dict[str, Any]]: """Send a single address to the US Census geocoding API. >>> out = geocode_address('4600 Silver Hill Rd,, 20233') |
