Skip to content

Commit a8fb546

Browse files
committed
Update to pass the mypy hook
Make the necessary changes to pass the `mypy` pre-commit hook.
1 parent e902740 commit a8fb546

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ repos:
116116
hooks:
117117
- id: mypy
118118
additional_dependencies:
119+
- types-docopt
120+
- types-requests
119121
- types-setuptools
120122
- repo: https://github.com/asottile/pyupgrade
121123
rev: v3.2.0

src/trustymail/domain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from collections import OrderedDict
33
from datetime import datetime, timedelta
44
from os import path, stat
5+
from typing import Dict
56

67
# Third-Party Libraries
78
import publicsuffix
@@ -60,7 +61,7 @@ def format_list(record_list):
6061

6162

6263
class Domain:
63-
base_domains = {}
64+
base_domains: Dict[str, Domain] = {}
6465

6566
def __init__(
6667
self,

0 commit comments

Comments
 (0)