[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-08 Thread Steven Silvester
Steven Silvester added the comment: I agree we're stuck with the typing stub workaround for our use case. We can re-submit a "fix forward" PR. -- ___ Python tracker <https://bugs.python.o

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-07 Thread Steven Silvester
Steven Silvester added the comment: The use case that prompted https://github.com/python/cpython/pull/31679 is that we are adding typings to `PyMongo`. We are late to using typings, because we only recently dropped Python 2.7 support. We have an existing options class that subclasses

[issue34380] Relax Restrictions on await?

2018-08-11 Thread Steven Silvester
Steven Silvester added the comment: Thanks for your consideration and for implementing the original feature! -- ___ Python tracker <https://bugs.python.org/issue34

[issue34380] Relax Restrictions on await?

2018-08-11 Thread Steven Silvester
New submission from Steven Silvester : When writing an `async` function, we often want to `await` a method call that may or may not be `async`. For instance, it may be synchronous in the base class, but asynchronous in the subclass on the instance we have been given. It would be nice