streamlit-webrtc 0.47.7__py3-none-any.whl → 0.47.9__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.
@@ -10,11 +10,14 @@ from typing import (
10
10
  Generic,
11
11
  NamedTuple,
12
12
  Optional,
13
+ TypedDict,
13
14
  Union,
14
15
  cast,
15
16
  overload,
16
17
  )
17
18
 
19
+ import streamlit as st
20
+ import streamlit.components.v1 as components
18
21
  from aiortc.mediastreams import MediaStreamTrack
19
22
 
20
23
  from streamlit_webrtc.models import (
@@ -25,15 +28,6 @@ from streamlit_webrtc.models import (
25
28
  VideoFrameCallback,
26
29
  )
27
30
 
28
- try:
29
- from typing import TypedDict
30
- except ImportError:
31
- # Python < 3.8
32
- from typing_extensions import TypedDict
33
-
34
- import streamlit as st
35
- import streamlit.components.v1 as components
36
-
37
31
  from ._compat import rerun
38
32
  from .components_callbacks import register_callback
39
33
  from .config import (
@@ -1,9 +1,4 @@
1
- from typing import Dict, List, Optional, Union
2
-
3
- try:
4
- from typing import TypedDict
5
- except ImportError:
6
- from typing_extensions import TypedDict
1
+ from typing import Dict, List, Optional, TypedDict, Union
7
2
 
8
3
  RTCIceServer = TypedDict(
9
4
  "RTCIceServer",
@@ -1,9 +1,4 @@
1
- from typing import Optional, Union, overload
2
-
3
- try:
4
- from typing import Literal
5
- except ImportError:
6
- from typing_extensions import Literal # type: ignore
1
+ from typing import Literal, Optional, Union, overload
7
2
 
8
3
  import streamlit as st
9
4
  from aiortc import MediaStreamTrack
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "files": {
3
- "main.js": "./static/js/main.9c17b353.js",
3
+ "main.js": "./static/js/main.ff279b83.js",
4
4
  "index.html": "./index.html",
5
- "main.9c17b353.js.map": "./static/js/main.9c17b353.js.map"
5
+ "main.ff279b83.js.map": "./static/js/main.ff279b83.js.map"
6
6
  },
7
7
  "entrypoints": [
8
- "static/js/main.9c17b353.js"
8
+ "static/js/main.ff279b83.js"
9
9
  ]
10
10
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><title>Streamlit WebRTC Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit WebRTC Component"/><script defer="defer" src="./static/js/main.9c17b353.js"></script></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><title>Streamlit WebRTC Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit WebRTC Component"/><script defer="defer" src="./static/js/main.ff279b83.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>