streamlit-nightly 1.31.2.dev20240220__py2.py3-none-any.whl → 1.31.2.dev20240221__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -512,7 +512,7 @@ class ScriptRunner:
512
512
  # ...
513
513
  # ```
514
514
  # in their scripts.
515
- module = _new_module("__main__")
515
+ module = self._new_module("__main__")
516
516
 
517
517
  # Install the fake module as the __main__ module. This allows
518
518
  # the pickle module to work inside the user's code, since it now
@@ -626,6 +626,10 @@ class ScriptRunner:
626
626
  if config.get_option("runner.postScriptGC"):
627
627
  gc.collect(2)
628
628
 
629
+ def _new_module(self, name: str) -> types.ModuleType:
630
+ """Create a new module with the given name."""
631
+ return types.ModuleType(name)
632
+
629
633
 
630
634
  class ScriptControlException(BaseException):
631
635
  """Base exception for ScriptRunner."""
@@ -676,11 +680,6 @@ def _clean_problem_modules() -> None:
676
680
  pass
677
681
 
678
682
 
679
- def _new_module(name: str) -> types.ModuleType:
680
- """Create a new module with the given name."""
681
- return types.ModuleType(name)
682
-
683
-
684
683
  # The reason this is not a decorator is because we want to make it clear at the
685
684
  # calling location that this function is being used.
686
685
  def _log_if_error(fn: Callable[[], None]) -> None:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.77d1c464.css",
4
- "main.js": "./static/js/main.c1c3de9f.js",
4
+ "main.js": "./static/js/main.c1c90505.js",
5
5
  "static/js/9336.2d95d840.chunk.js": "./static/js/9336.2d95d840.chunk.js",
6
6
  "static/js/9330.c0dd1723.chunk.js": "./static/js/9330.c0dd1723.chunk.js",
7
7
  "static/js/7217.d970c074.chunk.js": "./static/js/7217.d970c074.chunk.js",
@@ -150,6 +150,6 @@
150
150
  },
151
151
  "entrypoints": [
152
152
  "static/css/main.77d1c464.css",
153
- "static/js/main.c1c3de9f.js"
153
+ "static/js/main.c1c90505.js"
154
154
  ]
155
155
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.c1c3de9f.js"></script><link href="./static/css/main.77d1c464.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.c1c90505.js"></script><link href="./static/css/main.77d1c464.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>