Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump mypy from 1.5.1 to 1.6.1 #11274

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 18, 2023

Bumps mypy from 1.5.1 to 1.6.1.

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Unreleased

...

Other Notable Changes and Fixes

...

Acknowledgements

...

Mypy 1.6

Tuesday, 10 October 2023

We’ve just uploaded mypy 1.6 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.

Introduce Error Subcodes for Import Errors

Mypy now uses the error code import-untyped if an import targets an installed library that doesn’t support static type checking, and no stub files are available. Other invalid imports produce the import-not-found error code. They both are subcodes of the import error code, which was previously used for both kinds of import-related errors.

Use --disable-error-code=import-untyped to only ignore import errors about installed libraries without stubs. This way mypy will still report errors about typos in import statements, for example.

If you use --warn-unused-ignore or --strict, mypy will complain if you use # type: ignore[import] to ignore an import error. You are expected to use one of the more specific error codes instead. Otherwise, ignoring the import error code continues to silence both errors.

This feature was contributed by Shantanu (PR 15840, PR 14740).

Remove Support for Targeting Python 3.6 and Earlier

Running mypy with --python-version 3.6, for example, is no longer supported. Python 3.6 hasn’t been properly supported by mypy for some time now, and this makes it explicit. This was contributed by Nikita Sobolev (PR 15668).

Selective Filtering of --disallow-untyped-calls Targets

Using --disallow-untyped-calls could be annoying when using libraries with missing type information, as mypy would generate many errors about code that uses the library. Now you can use --untyped-calls-exclude=acme, for example, to disable these errors about calls targeting functions defined in the acme package. Refer to the documentation for more information.

This feature was contributed by Ivan Levkivskyi (PR 15845).

Improved Type Inference between Callable Types

Mypy now does a better job inferring type variables inside arguments of callable types. For example, this code fragment now type checks correctly:

def f(c: Callable[[T, S], None]) -> Callable[[str, T, S], None]: ...
def g(*x: int) -> None: ...
</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 <dependency name> 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)

Bumps [mypy](https://github.com/python/mypy) from 1.5.1 to 1.6.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.5.1...v1.6.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added backend dependencies Pull requests that update a dependency file engineering labels Oct 18, 2023
@jhonatan-lopes jhonatan-lopes mentioned this pull request Oct 18, 2023
@jhonatan-lopes jhonatan-lopes merged commit 72ae096 into main Oct 18, 2023
8 checks passed
@jhonatan-lopes jhonatan-lopes deleted the dependabot/pip/mypy-1.6.1 branch October 18, 2023 14:40
jhonatan-lopes added a commit that referenced this pull request Nov 7, 2023
* Replace FeatureFlags banner with DonateBanner snippets. (#11195)

* Replace FeatureFlags banner with DonateBanner snippets.

* Add tests for donate banner chooser.

* Rename NoLocaleSnippetChooser to DefaultLocaleSnippetChooser

* Add more assertions to donate banner test

* Corrected djlint errors in the donate banner templates instead of adding them to the ignore list.

* Fix migration

---------

Co-authored-by: Jhonatan Lopes <jhonatan.dapontelopes@gmail.com>

* [PNI] Homepage backend performance improvements (#11240)

* Fix PNI homepage get_context N+1 problem

* Hero supporting pages and featured articles

* Removed trailing slash from 'https://basket-dev.allizom.org/' (#11246)

Co-authored-by: Tyler Denton <41487159+mtdenton@users.noreply.github.com>

* Clean-Up for links on PNI Annual Creep-O-Meter page (#11272)

* outro link styling updates

* added Apple and Zoom links

* removed `/en` from links

* removed `/en` from Apple and Zoom links

* PNI CC Page - quick fixes and tweaks (#11273)

* PNI CC Page - fixes and tweaks

* reduced speech bubble width on mobile

* share button styling fixes for :focus state

* Bump sentry-sdk from 1.30.0 to 1.32.0 (#11264)

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.30.0 to 1.32.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.30.0...1.32.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mypy from 1.5.1 to 1.6.1 (#11274)

Bumps [mypy](https://github.com/python/mypy) from 1.5.1 to 1.6.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.5.1...v1.6.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Replace FeatureFlags banner with DonateBanner snippets. (#11195)" (#11276)

This reverts commit dcfe996.

* updated link

* Revert "[PNI] Homepage backend performance improvements (#11240)" (#11285)

This reverts commit 682f7a9.

* Revert "Removed trailing slash from 'https://basket-dev.allizom.org/' (#11246)" (#11286)

This reverts commit 95fd3dc.

* Adjusted logic used in PNI's quiz on creep-o-meter page (#11283)

* Adjusted logic used in PNI's quiz on creep-o-meter page

* Reimplement: Replace FeatureFlags banner with DonateBanner snippets. (#11280)

* Replace FeatureFlags banner with DonateBanner snippets.

* Add tests for donate banner chooser.

* Rename NoLocaleSnippetChooser to DefaultLocaleSnippetChooser

* Add more assertions to donate banner test

* Corrected djlint errors in the donate banner templates instead of adding them to the ignore list.

* Fix migration

---------

Co-authored-by: Victoria Chan <victoria.chan@torchbox.com>

* Removed trailing slash from 'https://basket-dev.allizom.org/' (#11312)

* Added `image_grid` and `image_text` blocks to Article (#11334)

* Added fields to article page, migration

* Updated factory body fields

* formatting

* `inv format` run

* Merge `feature/donate-help-page` into `main` (#11359)

* DonateHelpPage model, factory, and tests

* formatting

* html formatting

* template for notice section is done

* added "show_notice" flag

* Added newline at the end of help_page_notice.html

* feedback from PR

* formatting

* saving progress, page is now working with body but need to update scss still

* feedback from PR

* added height/width attributes to image for linter

* feedback from PR

* updated scss, factory, and template

* backend work done

* added new notice block instead so we can update template individually

* backend done, unless we want to make image optional

* updated help page to use new notice block instead of imagetextmini

* updated migrations

* linting

* formatting

* fixed typo

* updated to use StructBlockValidationError

* updated tests

* smal front end update

* linting notice-block.scss

* updated migrations, having trouble with NoticeBlockFactory

* block factories & tests, updating of factory file structure

* updated import

* updated some factory file paths to account for changes

* import formatting

* removed forgotten factory.py file

* first pass, have the form rendering with default styling

* formatting

* updated spacing

* updated linting file to ignore errors from FA code

* added donate and donate help page to visual regression tests

* removed donate pages from visual regression tests since they live on a different subdomain (donate.localhost)

* very first pass, borrowing existing file to get feedback from design

* fixed bug where submit button would not render for last two dropdown options

* fixed error where text box wouldnt show up for 2nd to last option

* feedback from pr (add comments, update env.default and other small changes)

* added newline at end of formassembly_body.html

* updated chevron in the select dropdown

* feedback from stakeholders (increased textarea height and implemented word wrapping on select element for chrome)

* fixed dropdown styling/wrap issue

* updated scss, ready for review

* Formatting of scss file

* updated app.json and continuous-integration.yml to include updated sp directives

* Feedback from PR (height to min-height)

* localized form and updated instructions

* updated formassembly JS

* formatting

* localized submit button value

* updated revision number

* feedback from PR (wrapping dropdown options in trans blocks)

* Fix migrations

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Victoria Chan <victoria.chan@torchbox.com>
Co-authored-by: Mavis Ou <mmmavis@users.noreply.github.com>
Co-authored-by: Tyler Denton <41487159+mtdenton@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Miranda <manieldiranda@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend dependencies Pull requests that update a dependency file engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant