apexdevkit 1.8.2__tar.gz → 1.8.3__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.
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/PKG-INFO +1 -1
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/testing/rest.py +15 -15
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/pyproject.toml +1 -1
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/LICENSE +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/README.md +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/error.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.8.2 → apexdevkit-1.8.3}/apexdevkit/testing/fake.py +0 -0
|
@@ -120,21 +120,21 @@ class RestfulName:
|
|
|
120
120
|
return HttpUrl(self.plural) + other
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
def as_plural(singular: str) -> str:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
def as_plural(singular: str) -> str:
|
|
124
|
+
suffixes = {
|
|
125
|
+
"y": "ies",
|
|
126
|
+
"ch": "ches",
|
|
127
|
+
"sh": "shes",
|
|
128
|
+
"s": "ses",
|
|
129
|
+
"z": "zes",
|
|
130
|
+
"x": "xes",
|
|
131
|
+
"fe": "ves",
|
|
132
|
+
"f": "ves",
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
for singular_suffix, plural_suffix in suffixes.items():
|
|
136
|
+
if singular.endswith(singular_suffix):
|
|
137
|
+
return singular.removesuffix(singular_suffix) + plural_suffix
|
|
138
138
|
|
|
139
139
|
return singular + "s"
|
|
140
140
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|