aboutsummaryrefslogtreecommitdiff
path: root/discord/context_managers.py
Commit message (Collapse)AuthorAgeFilesLines
* Typehint context_managers.pyStocker2021-08-201-10/+28
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+4
|
* Modernize code to use f-stringsRapptz2021-04-041-2/+0
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Catch asyncio.CancelledError in 3.8 in typing context managerBenjamin Mintz2019-06-201-1/+1
| | | | | | | | | | | | 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 ```
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* [lint] Limit unneccessarily broad except clausesHornwitser2018-11-241-1/+1
| | | | Add exception qualifier(s) to bare except clauses swallowing exceptions.
* Fix NameError for typing context manager.Rapptz2018-06-101-1/+1
| | | | Fixes #1342
* Remove dead package references.Rapptz2018-06-101-2/+0
|
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-11/+8
|
* Start typing immediately when using async typing context manager.Rapptz2017-04-121-6/+17
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Fix Messageable.typing context manager.Rapptz2017-01-031-6/+7
|
* Add MessageChannel.typing context manager for prolonged typing.Rapptz2017-01-031-0/+60