* Update mypy to 1.6.1
* Fix mypy "Source file found twice under different module names" error
* Ignore type of intialized abstract class in tests
* Use more specific type ignore method-assign
* Type ignore for message.get_all
* Remove unused type ignore
* Add SizedBuffer type for xmlrpc.client.Transport subclass
* Add Self type for RequestHandlerClass in test
* Add type ignore for shutil.rmtree onexc handler
* Quote SizedBuffer
* Add news entry
* Remove no longer correct comment
* Update self import
* Also ignore type onerror=handler
* Update news entry
* Update news entry
This is designed as a script and a data file (in YAML format), and meant
to manage the RTD redirects with a version controlled file.
This makes it possible for pull requests to this repository to update
the redirects for this project's documentation (eg: for better error
urls) and for this evolution to be tracked as a part of version control
history.
The pip-specific Path implementation has been removed, and all its
usages replaced by pathlib.Path. The tmpdir and tmpdir_factory fixtures
are also removed, and all usages are replaced by tmp_path and
tmp_path_factory, which use pathlib.Path.
The pip() function now also accepts pathlib.Path so we don't need to put
str() everywhere. Path arguments are coerced with os.fspath() into str.
towncrier renders with `trim_blocks=True` which trims the newline at the
start of the for loop's body. This adds an additional newline which is
not trimmed, which ensures that the code blocks don't blend into each
other.
This now supports:
- Clearer failure mode, for imports of the format `import x.y`
- Regular expression support for dropping files (useful for when we vendor pygments)
- Patching files prior to rewriting imports, allowing generation of patches on the
original package sources.
- Detection of py.typed files, which omits generation of unnecessary `.pyi` stubs.
It looks like towncrier unconditionally writes top_line
when it is defined in the title_format configuration.
So we must not repeat it in the template.
When running towncrier with --draft, it works differently
so in that case the top line is not shown...
This allows sphinxcontrib-towncrier to render it in the documentation.
The rendering of NEWS.rst is unchanged since Towncrier detects
automatically if that line exists and does not render a duplicated
section title.