mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
Set allow_none=True for limit/guarantee floats
This commit is contained in:
@@ -205,6 +205,7 @@ class Spawner(LoggingConfigurable):
|
||||
|
||||
cpu_limit = Float(
|
||||
None,
|
||||
allow_none=True,
|
||||
help="""
|
||||
Maximum number of cpu-cores a single-user server is allowed to use.
|
||||
|
||||
@@ -236,6 +237,7 @@ class Spawner(LoggingConfigurable):
|
||||
|
||||
cpu_guarantee = Float(
|
||||
None,
|
||||
allow_none=True,
|
||||
help="""
|
||||
Maximum number of cpu-cores a single-user server is allowed to use.
|
||||
|
||||
|
Reference in New Issue
Block a user