Skip to content

Commit 6c05f89

Browse files
Merge pull request #34 from thewebscraping/develop
Develop
2 parents 6d67533 + e39d55a commit 6c05f89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
exclude: '^docs.sh/|scripts/'
2-
default_stages: [commit]
2+
default_stages: [pre-commit]
33

44
default_language_version:
55
python: python3.10

tls_requests/models/headers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __delitem__(self, key):
129129
pop_idx = idx
130130
break
131131

132-
if pop_idx:
132+
if pop_idx is not None:
133133
self._items.pop(pop_idx)
134134

135135
def __contains__(self, key: Any) -> bool:
@@ -145,7 +145,7 @@ def __iter__(self):
145145
def __len__(self):
146146
return len(self._headers)
147147

148-
def __eq__(self, other):
148+
def __eq__(self, other: HeaderTypes):
149149
items = sorted(self._items)
150150
other = sorted(self._prepare_items(other))
151151
return items == other

0 commit comments

Comments
 (0)