Skip to content

Commit

Permalink
Filled in missing type annotations and disallowed untyped defs (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored May 19, 2021
1 parent 791d1d2 commit e23b44e
Show file tree
Hide file tree
Showing 34 changed files with 435 additions and 289 deletions.
12 changes: 12 additions & 0 deletions docs/versionhistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Changed asyncio task groups so that if the host and child tasks have only raised
``CancelledErrors``, just one ``CancelledError`` will now be raised instead of an
``ExceptionGroup``, allowing asyncio to ignore it when it propagates out of the task
- Changed task names to be converted to ``str`` early on asyncio (PR by Thomas Grainger)
- Fixed ``sniffio._impl.AsyncLibraryNotFoundError: unknown async library, or not in async context``
on asyncio and Python 3.6 when ``to_thread.run_sync()`` is used from
``loop.run_until_complete()``
Expand All @@ -20,6 +21,17 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
task is cancelled (PR by Thomas Grainger)
- Fixed declared return type of ``TaskGroup.start()`` (it was declared as ``None``, but anything
can be returned from it)
- Fixed ``TextStream.extra_attributes`` raising ``AttributeError`` (PR by Thomas Grainger)
- Fixed ``await maybe_async(current_task())`` returning ``None`` (PR by Thomas Grainger)
- Fixed: ``pickle.dumps(current_task())`` now correctly raises ``TypeError`` instead of pickling to
``None`` (PR by Thomas Grainger)
- Fixed return type annotation of ``Event.wait()`` (``bool`` → ``None``) (PR by Thomas Grainger)
- Fixed return type annotation of ``RunVar.get()`` to return either the type of the default value
or the type of the contained value (PR by Thomas Grainger)
- Fixed a deprecation warning message to refer to ``maybe_async()`` and not ``maybe_awaitable()``
(PR by Thomas Grainger)
- Filled in argument and return types for all functions and methods previously missing them
(PR by Thomas Grainger)

**3.0.1**

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ pytest11 =

[mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
Loading

0 comments on commit e23b44e

Please sign in to comment.