core: drop py36 support, update docs for reddit (#193)
* docs: update references to my.reddit * ci: remove 3.6, add 3.9
This commit is contained in:
parent
be21606075
commit
3f4fb64d56
7 changed files with 18 additions and 21 deletions
|
@ -607,7 +607,10 @@ class DummyExecutor(Executor):
|
|||
self._shutdown = False
|
||||
self._max_workers = max_workers
|
||||
|
||||
def submit(self, fn, *args, **kwargs) -> Future:
|
||||
# TODO: once support for 3.7 is dropped,
|
||||
# can make 'fn' a positional only parameter,
|
||||
# which fixes the mypy error this throws without the type: ignore
|
||||
def submit(self, fn, *args, **kwargs) -> Future: # type: ignore[override]
|
||||
if self._shutdown:
|
||||
raise RuntimeError('cannot schedule new futures after shutdown')
|
||||
|
||||
|
@ -623,5 +626,5 @@ class DummyExecutor(Executor):
|
|||
|
||||
return f
|
||||
|
||||
def shutdown(self, wait: bool=True) -> None:
|
||||
def shutdown(self, wait: bool=True) -> None: # type: ignore[override]
|
||||
self._shutdown = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue