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

disallow untyped defs #289

Merged
merged 32 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d2f23ce
disallow untyped defs
graingert May 11, 2021
c9088ac
fix forward annotations
graingert May 12, 2021
0a4c2a6
actually return a TaskInfo when awaited
graingert May 12, 2021
bff90a0
can't del scope
graingert May 12, 2021
ae24c06
can't delete the scope
graingert May 12, 2021
ef44368
remove unused imports
graingert May 12, 2021
df6061e
flake8 >99 length lines
graingert May 12, 2021
fcc28ea
test TextStream.extra_attributes
graingert May 12, 2021
6fffa99
add a test for await maybe_async(current_task())
graingert May 12, 2021
9b14209
fix warning message to refer to anyio.maybe_async
graingert May 12, 2021
ebb72c3
remove pointless TaskInfo.__reduce__ you cannot pickle a coroutine
graingert May 12, 2021
fbb3f48
convert remote_address to str explicitly
graingert May 12, 2021
8eae7fc
remove _SockAddr class
graingert May 12, 2021
4744d9b
remove pointless whitespace
graingert May 12, 2021
b0e984c
move asyncio test runner exception handling back out of the finally
graingert May 12, 2021
36fd770
restore _TokenWrapper.__slots__ code style
graingert May 18, 2021
3df9b40
Merge branch 'master' of git://github.com/agronholm/anyio into disall…
graingert May 18, 2021
bb9ec2f
convert start_soon(..., name=object) to str
graingert May 18, 2021
13e5ac3
type annotate tg.start_soon(..., name: object)
graingert May 18, 2021
3f726be
fix type annotation of send_raw_command
graingert May 18, 2021
686ded7
avoid redundant forward references to TaskInfo
graingert May 18, 2021
3f1d35e
removed redundant [Any] type parameters
graingert May 18, 2021
f5543a4
Apply suggestions from code review
graingert May 18, 2021
8ff7a2a
remove if TYPE_CHECKING for trio.socket
graingert May 19, 2021
0b479b5
fix TestRunner._result_queue type
graingert May 19, 2021
e46ed14
remove cast from RunVar.get and restore RunvarToken identity check
graingert May 19, 2021
f23d857
name can still be any object, even if you're calling from a thread
graingert May 19, 2021
89bab0d
undo dedent of run_sync_in_worker_thread
graingert May 19, 2021
f3d7411
use Mapping[Any, Callable[[], Any] for extra_attributes
graingert May 19, 2021
51a5f33
Updated the version history
agronholm May 19, 2021
eecb90b
Update docs/versionhistory.rst regarding untyped defs
graingert May 19, 2021
0119ad6
Adjusted formatting
agronholm May 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 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,15 @@ 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)
graingert marked this conversation as resolved.
Show resolved Hide resolved

**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