300fb0411e
Replace trigger_typing with awaiting typing context manager
2022-05-02 04:36:18 -04:00
5aa696ccfa
Fix typing issues and improve typing completeness across the library
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com >
Co-authored-by: Josh <josh.ja.butt@gmail.com >
2022-03-13 23:52:10 -04:00
0ed745f5ae
Remove regular context manager support from Typing
2022-02-23 16:05:08 -05:00
88b520b5ab
Reformat code using black
...
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
2022-02-20 08:04:58 -05:00
ef32f6d882
Typehint context_managers.py
2021-08-20 19:50:39 -04:00
89456022cf
Add __all__
to remaining modules
2021-04-07 02:30:32 -04:00
9d39b135f4
Modernize code to use f-strings
...
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
850a0431bf
Catch asyncio.CancelledError in 3.8 in typing context manager
...
In python 3.8, asyncio.CancelledError is a subclass of BaseException
rather than Exception, so `except Exception:` will not swallow
CancelledError. This change prevents an error in 3.8 from being printed
to the console when the following is run:
```
async with ctx.typing():
pass
```
2019-06-20 22:51:28 -04:00
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
a71b3b5fa0
[lint] Limit unneccessarily broad except clauses
...
Add exception qualifier(s) to bare except clauses swallowing exceptions.
2018-11-24 22:17:57 -05:00
e51f92e78d
Fix NameError for typing context manager.
...
Fixes #1342
2018-06-10 18:30:32 -04:00
c67d95327e
Remove dead package references.
2018-06-10 18:16:40 -04:00
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
2018-06-10 18:10:00 -04:00
22150b20b6
Start typing immediately when using async typing context manager.
2017-04-12 21:26:23 -04:00
ff9f5749e1
Update copyright year to 2017.
2017-01-20 23:19:19 -05:00
94655c77c0
Fix Messageable.typing context manager.
2017-01-03 20:24:42 -05:00
1070cf0735
Add MessageChannel.typing context manager for prolonged typing.
2017-01-03 09:51:52 -05:00