Skip to content

Commit 892268e

Browse files
Bump the types-dependencies group across 1 directory with 6 updates (#732)
Bumps the types-dependencies group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [mypy](https://github.com/python/mypy) | `1.10.1` | `1.16.0` | | [types-aiofiles](https://github.com/typeshed-internal/stub_uploader) | `24.1.0.20240626` | `24.1.0.20250516` | | [types-authlib](https://github.com/typeshed-internal/stub_uploader) | `1.5.0.20250416` | `1.5.0.20250516` | | [types-fpdf2](https://github.com/typeshed-internal/stub_uploader) | `2.7.9.20240519` | `2.8.3.20250516` | | [types-redis](https://github.com/python/typeshed) | `4.6.0.20240425` | `4.6.0.20241004` | | [types-requests](https://github.com/typeshed-internal/stub_uploader) | `2.32.0.20240622` | `2.32.0.20250515` | Updates `mypy` from 1.10.1 to 1.16.0 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's changelog</a>.</em></p> <blockquote> <h1>Mypy Release Notes</h1> <h2>Next Release</h2> <h2>Mypy 1.16</h2> <p>We’ve just uploaded mypy 1.16 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type checker for Python. This release includes new features and bug fixes. You can install it as follows:</p> <pre><code>python3 -m pip install -U mypy </code></pre> <p>You can read the full documentation for this release on <a href="http://mypy.readthedocs.io">Read the Docs</a>.</p> <h3>Different Property Getter and Setter Types</h3> <p>Mypy now supports using different types for a property getter and setter:</p> <pre lang="python"><code>class A: _value: int <pre><code>@Property def foo(self) -&amp;gt; int: return self._value @foo.setter def foo(self, x: str | int) -&amp;gt; None: try: self._value = int(x) except ValueError: raise Exception(f&amp;quot;'{x}' is not a valid value for 'foo'&amp;quot;) </code></pre> <p></code></pre></p> <p>This was contributed by Ivan Levkivskyi (PR <a href="https://redirect.github.com/python/mypy/pull/18510">18510</a>).</p> <h3>Flexible Variable Redefinitions (Experimental)</h3> <p>Mypy now allows unannotated variables to be freely redefined with different types when using the experimental <code>--allow-redefinition-new</code> flag. You will also need to enable <code>--local-partial-types</code>. Mypy will now infer a union type when different types are assigned to a variable:</p> <pre lang="py"><code># mypy: allow-redefinition-new, local-partial-types <p>def f(n: int, b: bool) -&gt; int | str: if b: x = n else: &lt;/tr&gt;&lt;/table&gt; </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/9e72e9601f4c2fb6866cfec98fc40a31c91ccdb0"><code>9e72e96</code></a> Update version to 1.16.0</li> <li><a href="https://github.com/python/mypy/commit/8fe719ff3a8d1e26d3841a48df21ddf7d5b3c94d"><code>8fe719f</code></a> Add changelog for 1.16 (<a href="https://redirect.github.com/python/mypy/issues/19138">#19138</a>)</li> <li><a href="https://github.com/python/mypy/commit/2a036e739f8691576056669371d9f020e95c2603"><code>2a036e7</code></a> Revert &quot;Infer correct types with overloads of <code>Type[Guard | Is]</code> (<a href="https://redirect.github.com/python/mypy/issues/19161">#19161</a>)</li> <li><a href="https://github.com/python/mypy/commit/b6da4fcf97fca9cd28e81a880f818dc364b5a06d"><code>b6da4fc</code></a> Allow enum members to have type objects as values (<a href="https://redirect.github.com/python/mypy/issues/19160">#19160</a>)</li> <li><a href="https://github.com/python/mypy/commit/334469f999c5c777124a123062b4349614447e0d"><code>334469f</code></a> [mypyc] Improve documentation of native and non-native classes (<a href="https://redirect.github.com/python/mypy/issues/19154">#19154</a>)</li> <li><a href="https://github.com/python/mypy/commit/a499d9fdba06732248c07586f2fd95c47a4fa0f7"><code>a499d9f</code></a> Document --allow-redefinition-new (<a href="https://redirect.github.com/python/mypy/issues/19153">#19153</a>)</li> <li><a href="https://github.com/python/mypy/commit/96525a23f0f8a3826d9875fa8b6e8e362cd9525e"><code>96525a2</code></a> Merge commit '9e45dadcf6d8dbab36f83d9df94a706c0b4f9207' into release-1.16</li> <li><a href="https://github.com/python/mypy/commit/9e45dadcf6d8dbab36f83d9df94a706c0b4f9207"><code>9e45dad</code></a> Clear more data in TypeChecker.reset() instead of asserting (<a href="https://redirect.github.com/python/mypy/issues/19087">#19087</a>)</li> <li><a href="https://github.com/python/mypy/commit/772cd0cebed6884636de0019e43caa06dbaa39ba"><code>772cd0c</code></a> Add --strict-bytes to --strict (<a href="https://redirect.github.com/python/mypy/issues/19049">#19049</a>)</li> <li><a href="https://github.com/python/mypy/commit/0b65f215996401264a68a3a06f3fbcd19915a9a5"><code>0b65f21</code></a> Admit that Final variables are never redefined (<a href="https://redirect.github.com/python/mypy/issues/19083">#19083</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.10.1...v1.16.0">compare view</a></li> </ul> </details> <br /> Updates `types-aiofiles` from 24.1.0.20240626 to 24.1.0.20250516 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/typeshed-internal/stub_uploader/commits">compare view</a></li> </ul> </details> <br /> Updates `types-authlib` from 1.5.0.20250416 to 1.5.0.20250516 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/typeshed-internal/stub_uploader/commits">compare view</a></li> </ul> </details> <br /> Updates `types-fpdf2` from 2.7.9.20240519 to 2.8.3.20250516 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/typeshed-internal/stub_uploader/commits">compare view</a></li> </ul> </details> <br /> Updates `types-redis` from 4.6.0.20240425 to 4.6.0.20241004 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> Updates `types-requests` from 2.32.0.20240622 to 2.32.0.20250515 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/typeshed-internal/stub_uploader/commits">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: armanddidierjean <[email protected]>
1 parent 0167998 commit 892268e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

app/core/payment/schemas_payment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CheckoutComplete(BaseModel):
2424

2525
payments: list[CheckoutPayment]
2626

27-
@computed_field # type: ignore[misc] # Current issue with mypy, see https://docs.pydantic.dev/2.0/usage/computed_fields/ and https://github.com/python/mypy/issues/1362
27+
@computed_field # type: ignore[prop-decorator] # Current issue with mypy, see https://docs.pydantic.dev/2.0/usage/computed_fields/ and https://github.com/python/mypy/issues/1362
2828
@property
2929
def payment_completed(self) -> bool:
3030
total_paid = sum([payment.paid_amount for payment in self.payments])

app/core/utils/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class Settings(BaseSettings):
236236
# The combination of `@property` and `@lru_cache` should be replaced by `@cached_property`
237237
# See https://docs.python.org/3.8/library/functools.html?highlight=#functools.cached_property
238238

239-
@computed_field # type: ignore[misc] # Current issue with mypy, see https://docs.pydantic.dev/2.0/usage/computed_fields/ and https://github.com/python/mypy/issues/1362
239+
@computed_field # type: ignore[prop-decorator] # Current issue with mypy, see https://docs.pydantic.dev/2.0/usage/computed_fields/ and https://github.com/python/mypy/issues/1362
240240
@cached_property
241241
def RSA_PRIVATE_KEY(cls) -> rsa.RSAPrivateKey:
242242
# https://cryptography.io/en/latest/hazmat/primitives/asymmetric/serialization/#module-cryptography.hazmat.primitives.serialization
@@ -245,12 +245,12 @@ def RSA_PRIVATE_KEY(cls) -> rsa.RSAPrivateKey:
245245
raise InvalidRSAKeyInDotenvError(private_key.__class__.__name__)
246246
return private_key
247247

248-
@computed_field # type: ignore[misc]
248+
@computed_field # type: ignore[prop-decorator]
249249
@cached_property
250250
def RSA_PUBLIC_KEY(cls) -> rsa.RSAPublicKey:
251251
return cls.RSA_PRIVATE_KEY.public_key()
252252

253-
@computed_field # type: ignore[misc]
253+
@computed_field # type: ignore[prop-decorator]
254254
@cached_property
255255
def RSA_PUBLIC_JWK(cls) -> dict[str, list[dict[str, Any]]]:
256256
# See https://github.com/jpadilla/pyjwt/issues/880
@@ -266,7 +266,7 @@ def RSA_PUBLIC_JWK(cls) -> dict[str, list[dict[str, Any]]]:
266266

267267
# This property parse AUTH_CLIENTS to create a dictionary of auth clients:
268268
# {"client_id": AuthClientClassInstance}
269-
@computed_field # type: ignore[misc]
269+
@computed_field # type: ignore[prop-decorator]
270270
@cached_property
271271
def KNOWN_AUTH_CLIENTS(cls) -> dict[str, providers.BaseAuthClient]:
272272
clients = {}
@@ -292,12 +292,12 @@ def KNOWN_AUTH_CLIENTS(cls) -> dict[str, providers.BaseAuthClient]:
292292

293293
return clients
294294

295-
@computed_field # type: ignore[misc]
295+
@computed_field # type: ignore[prop-decorator]
296296
@cached_property
297297
def OIDC_ISSUER(cls) -> str:
298298
return cls.CLIENT_URL[:-1]
299299

300-
@computed_field # type: ignore[misc]
300+
@computed_field # type: ignore[prop-decorator]
301301
@cached_property
302302
def REDIS_URL(cls) -> str | None:
303303
if cls.REDIS_HOST:

app/modules/raid/utils/pdf/pdf_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def write_document_header(self, document: Document, participant: Participant):
195195
line_height=6,
196196
text_align="CENTER",
197197
v_align=VAlign.M,
198-
) as table: # type: ignore[call-arg]
198+
) as table:
199199
for data_row in data:
200200
row = table.row()
201201
for datum in data_row:
@@ -342,7 +342,7 @@ def write_team_summary(self, team: Team):
342342
line_height=6,
343343
text_align="CENTER",
344344
v_align=VAlign.M,
345-
) as table: # type: ignore[call-arg]
345+
) as table:
346346
for data_row in data:
347347
row = table.row()
348348
for datum in data_row:
@@ -411,7 +411,7 @@ def write_key_label(self, key: str, label: str):
411411
text_align=Align.J,
412412
v_align=VAlign.M,
413413
headings_style=headings_style,
414-
) as table: # type: ignore[call-arg]
414+
) as table:
415415
row = table.row()
416416
row.cell(key)
417417
row.cell(label)

requirements-dev.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r requirements-common.txt
22
aiosqlite==0.20.0
33
httpx==0.27.0 # needed for tests as a replacement of requests in TestClient
4-
mypy==1.10.1
4+
mypy[faster-cache]==1.16.0
55
pandas-stubs == 2.2.2.240807
66
psycopg[binary]==3.2.1 # PostgreSQL adapter for synchronous operations at startup (database initializations & migrations), binary installation is the easiest way to install it
77
pytest-alembic==0.12.1
@@ -10,10 +10,10 @@ pytest-cov==6.1.1
1010
pytest-mock==3.14.1
1111
pytest==8.3.5
1212
ruff==0.11.8
13-
types-aiofiles==24.1.0.20240626
14-
types-Authlib==1.5.0.20250416
15-
types-fpdf2==2.7.9.20240519
16-
types-redis==4.6.0.20240425
17-
types-requests==2.32.0.20240622
13+
types-aiofiles==24.1.0.20250516
14+
types-Authlib==1.5.0.20250516
15+
types-fpdf2==2.8.3.20250516
16+
types-redis==4.6.0.20241004
17+
types-requests==2.32.0.20250515
1818
boto3-stubs[s3]==1.38.7
1919
google-auth-stubs==0.3.0

0 commit comments

Comments
 (0)