polarsource / polar

An Open Source Lemon Squeezy alternative with better pricing! Get paid coding on your passion.
https://polar.sh
Apache License 2.0
2.57k stars 93 forks source link

build(deps-dev): bump mypy from 1.10.1 to 1.11.1 in /server #3717

Closed dependabot[bot] closed 1 month ago

dependabot[bot] commented 1 month ago

Bumps mypy from 1.10.1 to 1.11.1.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next release

Mypy 1.11

We’ve just uploaded mypy 1.11 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support Python 3.12 Syntax for Generics (PEP 695)

Mypy now supports the new type parameter syntax introduced in Python 3.12 (PEP 695). This feature is still experimental and must be enabled with the --enable-incomplete-feature=NewGenericSyntax flag, or with enable_incomplete_feature = NewGenericSyntax in the mypy configuration file. We plan to enable this by default in the next mypy feature release.

This example demonstrates the new syntax:

# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...

reveal_type(f(1)) # Revealed type is 'int'

Generic class

class C[T]: def init(self, x: T) -> None: self.x = x

c = C('a') reveal_type(c.x) # Revealed type is 'str'

Type alias

type A[T] = C[list[T]]

This feature was contributed by Jukka Lehtosalo.

Support for functools.partial

Mypy now type checks uses of functools.partial. Previously mypy would accept arbitrary arguments.

This example will now produce an error:

from functools import partial
</tr></table> 

... (truncated)

Commits


Dependabot compatibility score

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 commands and options
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 ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **polar** | ⬜️ Ignored ([Inspect](https://vercel.com/polar-sh/polar/8LNvu5LVmUzXiWPFDiYRNsR63rqz)) | [Visit Preview](https://polar-git-dependabot-pipservermypy-1111-polar-sh.vercel.app) | | Aug 5, 2024 5:40am | | **polar-next-js-example** | ⬜️ Ignored ([Inspect](https://vercel.com/polar-sh/polar-next-js-example/8D8FZQEMMPRE3rqFwwYLx938ugMo)) | [Visit Preview](https://polar-next-js-example-git-dependabot-pipserverm-a858dd-polar-sh.vercel.app) | | Aug 5, 2024 5:40am |
github-actions[bot] commented 1 month ago

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 226.56 KB (🟡 +1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Thirty-two Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/backoffice/layout 455.84 KB 682.4 KB 194.97% (🟡 +0.01%)
/docs/api/[...endpoint]/page 408.55 KB 635.11 KB 181.46% (+/- <0.01%)
/dashboard/[organization]/(topbar)/(home)/page 475.97 KB 702.53 KB 200.72% (🟡 +0.01%)
/dashboard/[organization]/(topbar)/layout 455.84 KB 682.4 KB 194.97% (🟡 +0.01%)
/dashboard/[organization]/(topbar)/analytics/page 573.47 KB 800.03 KB 228.58% (+/- <0.01%)
/dashboard/[organization]/(topbar)/donations/overview/page 574.04 KB 800.6 KB 228.74% (🟡 +0.01%)
/dashboard/[organization]/(topbar)/issues/badge/page 468.39 KB 694.95 KB 198.56% (+/- <0.01%)
/dashboard/[organization]/(topbar)/issues/organizations/page 447.83 KB 674.39 KB 192.68% (+/- <0.01%)
/dashboard/[organization]/(topbar)/issues/overview/page 489.39 KB 715.95 KB 204.56% (+/- <0.01%)
/dashboard/[organization]/(topbar)/members/page 445.46 KB 672.02 KB 192.01% (+/- <0.01%)
/dashboard/[organization]/(topbar)/posts/analytics/page 569.95 KB 796.51 KB 227.58% (+/- <0.01%)
/dashboard/[organization]/(topbar)/posts/page 557.35 KB 783.92 KB 223.98% (+/- <0.01%)
/dashboard/[organization]/(topbar)/products/benefits/page 539.22 KB 765.79 KB 218.80% (+/- <0.01%)
/dashboard/[organization]/(topbar)/products/overview/page 447.35 KB 673.91 KB 192.55% (+/- <0.01%)
/dashboard/[organization]/(topbar)/sales/page 478.73 KB 705.29 KB 201.51% (+/- <0.01%)
/dashboard/[organization]/(topbar)/sales/subscriptions/page 491.56 KB 718.13 KB 205.18% (+/- <0.01%)
/dashboard/[organization]/(topbar)/settings/page 460.7 KB 687.26 KB 196.36% (+/- <0.01%)
/dashboard/[organization]/(topbar)/settings/webhooks/endpoints/[id]/page 491.28 KB 717.84 KB 205.10% (+/- <0.01%)
/dashboard/[organization]/(white)/posts/[post]/page 558.48 KB 785.04 KB 224.30% (+/- <0.01%)
/dashboard/[organization]/(white)/layout 426.85 KB 653.41 KB 186.69% (+/- <0.01%)
/dashboard/[organization]/(white)/posts/new/page 556.14 KB 782.7 KB 223.63% (+/- <0.01%)
/dashboard/[organization]/products/[id]/page 527.67 KB 754.23 KB 215.49% (🟡 +0.01%)
/dashboard/[organization]/products/layout 426.85 KB 653.41 KB 186.69% (+/- <0.01%)
/dashboard/[organization]/products/new/page 527.34 KB 753.9 KB 215.40% (+/- <0.01%)
/dashboard/[organization]/promote/page 462.3 KB 688.87 KB 196.82% (+/- <0.01%)
/dashboard/[organization]/promote/layout 426.85 KB 653.41 KB 186.69% (+/- <0.01%)
/docs/(mdx)/layout 353.61 KB 580.17 KB 165.76% (+/- <0.01%)
/docs/api/(mdx)/layout 353.6 KB 580.16 KB 165.76% (+/- <0.01%)
/docs/contribute/layout 353.61 KB 580.17 KB 165.76% (+/- <0.01%)
/docs/support/layout 353.6 KB 580.16 KB 165.76% (+/- <0.01%)
/dashboard/[organization]/(topbar)/finance/layout 426.85 KB 653.41 KB 186.69% (+/- <0.01%)
/dashboard/[organization]/(topbar)/finance/issue-funding/layout 426.85 KB 653.41 KB 186.69% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

dependabot[bot] commented 1 month ago

Looks like mypy is up-to-date now, so this is no longer needed.