-
Notifications
You must be signed in to change notification settings - Fork 304
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
Decide and stick once and for all if functions are async or not ? #1165
Comments
|
Sorry the problem is in Maybe it's a question of moving things to AsyncMappingKernelManager ? But as AsyncMappingKernelManager inhering from MappingKernelManager, mypy will stil complain. |
We should probably inherit from |
By default, instances of
FWIW -
Won't this cause issues when synchronous methods on I'd rather see us drop the synchronous implementation of @Carreau - if we were to drop |
Description
Right now I'm starting to have problem with mypy/async and sync,
a couple of functions like
km.start_kernel/ks._async_start_kernel
aresync/async
in upstream jupyter_client, but there are places where there isstart_kernel = _async_start_kernel
, where upstream it's explicitlystart_kernel = run_sync(_async_start_kernel)
. Now it's problematic as you can't swap one class for the other and mypy complain because:So right now in #1100, I can't fix mypy by correcting
start_kernel = _async_start_kernel
tostart_kernel = run_sync(_async_start_kernel)
, because then a bunch of test are failing,and can't leave it as is, as it's incorrect WRT jupyter_client.
One possible change is to update jupyter_client to make start_kernel always async ?
I'm not sure which direction to go anymore.
The text was updated successfully, but these errors were encountered: