urlpattern 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true,
7
+ "python.analysis.typeCheckingMode": "basic",
8
+ "python.analysis.autoImportCompletions": true,
9
+ "python.analysis.inlayHints.callArgumentNames": "partial",
10
+ "python.analysis.inlayHints.functionReturnTypes": true,
11
+ "python.analysis.inlayHints.pytestParameters": true,
12
+ "python.analysis.inlayHints.variableTypes": true
13
+ }
@@ -186,7 +186,7 @@ dependencies = [
186
186
 
187
187
  [[package]]
188
188
  name = "python-urlpattern"
189
- version = "0.1.1"
189
+ version = "0.1.2"
190
190
  dependencies = [
191
191
  "pyo3",
192
192
  "regex",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "python-urlpattern"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  authors = ["방성범 (Bang Seongbeom) <bangseongbeom@gmail.com>"]
5
5
  edition = "2021"
6
6
  description = "An implementation of the URL Pattern Standard for Python written in Rust"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: urlpattern
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -59,7 +59,6 @@ py -m pip install urlpattern
59
59
  ```py
60
60
  from urlpattern import URLPattern
61
61
 
62
-
63
62
  pattern = URLPattern("https://example.com/*")
64
63
  print(pattern.test("https://example.com/foo/bar")) # output: True
65
64
 
@@ -28,7 +28,6 @@ py -m pip install urlpattern
28
28
  ```py
29
29
  from urlpattern import URLPattern
30
30
 
31
-
32
31
  pattern = URLPattern("https://example.com/*")
33
32
  print(pattern.test("https://example.com/foo/bar")) # output: True
34
33
 
@@ -72,4 +72,5 @@ def test(entry):
72
72
  continue
73
73
 
74
74
  else:
75
+ assert result
75
76
  assert result[key] == entry["expected_match"][key]
@@ -28,7 +28,7 @@ class URLPattern:
28
28
  @property
29
29
  def hash(self) -> str: ...
30
30
 
31
- class URLPatternInit(TypedDict):
31
+ class URLPatternInit(TypedDict, total=False):
32
32
  protocol: str
33
33
  username: str
34
34
  password: str
@@ -1,7 +0,0 @@
1
- {
2
- "python.testing.pytestArgs": [
3
- "tests"
4
- ],
5
- "python.testing.unittestEnabled": false,
6
- "python.testing.pytestEnabled": true
7
- }
File without changes
File without changes
File without changes
File without changes
File without changes