Skip to content

Commit 3c26951

Browse files
committed
Fix type checking errors
1 parent a435452 commit 3c26951

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ def test(entry):
7272
continue
7373

7474
else:
75+
assert result
7576
assert result[key] == entry["expected_match"][key]

urlpattern.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class URLPattern:
2828
@property
2929
def hash(self) -> str: ...
3030

31-
class URLPatternInit(TypedDict):
31+
class URLPatternInit(TypedDict, total=False):
3232
protocol: str
3333
username: str
3434
password: str

0 commit comments

Comments
 (0)