We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff968d commit 7b33457Copy full SHA for 7b33457
2 files changed
coverage/misc.py
@@ -167,10 +167,10 @@ def update(self, v: Any) -> None:
167
case None:
168
pass
169
case str():
170
- self.hash.update(f"{len(v)}:".encode("utf-8"))
+ self.hash.update(f"{len(v)}:".encode())
171
self.hash.update(v.encode("utf-8"))
172
case bytes():
173
174
self.hash.update(v)
175
case int() | float():
176
self.hash.update(str(v).encode("utf-8"))
tests/strategies.py
@@ -5,7 +5,7 @@
5
6
from __future__ import annotations
7
8
-from typing import Sequence
+from collections.abc import Sequence
9
10
from hypothesis import strategies as st
11
0 commit comments