Drop Python 3.6 and 3.7 support #891
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
ruff- see Inferring the Python version)ruff check --target-version="py38" --select=UP --fix) - can be enforced following merge of Python linting throughruff#888tupleinstead ofTuplefor type annotationX | Yfor type annotations.super()instead ofsuper(__class__, self)openmockis deprecated, useunittest.mockformatcallEnables usage of PEP 563 postponed evaluation of annotations (
from __future__ import annotations) towards #878 - which would break for users who attempt to install and run the latest releases using Python 3.6.Enables removal of
attrsdependency through migration to the 3.7+ nativedataclasses(PEP 557) without installing backports and which provides improved type hinting and associated IDE support towards #878 - provided there are no constraints on retainingattrs.