diff --git a/.vscode/settings.json b/.vscode/settings.json index 9b38853..8b30857 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,11 @@ "tests" ], "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true + "python.testing.pytestEnabled": true, + "python.analysis.typeCheckingMode": "basic", + "python.analysis.autoImportCompletions": true, + "python.analysis.inlayHints.callArgumentNames": "partial", + "python.analysis.inlayHints.functionReturnTypes": true, + "python.analysis.inlayHints.pytestParameters": true, + "python.analysis.inlayHints.variableTypes": true } \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index e9bd2ee..d89b2f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,7 +186,7 @@ dependencies = [ [[package]] name = "python-urlpattern" -version = "0.1.1" +version = "0.1.2" dependencies = [ "pyo3", "regex", diff --git a/Cargo.toml b/Cargo.toml index 54ab1a3..bc62648 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python-urlpattern" -version = "0.1.1" +version = "0.1.2" authors = ["방성범 (Bang Seongbeom) "] edition = "2021" description = "An implementation of the URL Pattern Standard for Python written in Rust" diff --git a/README.md b/README.md index 85c1dff..85175c5 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ py -m pip install urlpattern ```py from urlpattern import URLPattern - pattern = URLPattern("https://example.com/*") print(pattern.test("https://example.com/foo/bar")) # output: True diff --git a/tests/test_lib.py b/tests/test_lib.py index 720681e..cc21719 100644 --- a/tests/test_lib.py +++ b/tests/test_lib.py @@ -72,4 +72,5 @@ def test(entry): continue else: + assert result assert result[key] == entry["expected_match"][key] diff --git a/urlpattern.pyi b/urlpattern.pyi index 8ca00c3..7d85965 100644 --- a/urlpattern.pyi +++ b/urlpattern.pyi @@ -28,7 +28,7 @@ class URLPattern: @property def hash(self) -> str: ... -class URLPatternInit(TypedDict): +class URLPatternInit(TypedDict, total=False): protocol: str username: str password: str