Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48aa98b

Browse filesBrowse files
committed
Remove unnecessary typing_extensions usage in tests
No need to use typing_extensions.TypedDict in these tests when typing.TypedDict works just fine. That avoids problems with Python 3.14 (#5352) caused by a bug in typing_extensions: python/typing_extensions#593
1 parent 1476e53 commit 48aa98b
Copy full SHA for 48aa98b
Expand file treeCollapse file tree

10 files changed

+19
-31
lines changed

‎atest/robot/libdoc/backwards_compatibility.robot

Copy file name to clipboardExpand all lines: atest/robot/libdoc/backwards_compatibility.robot
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ Validate keyword 'Simple'
6464
Keyword Name Should Be 1 Simple
6565
Keyword Doc Should Be 1 Some doc.
6666
Keyword Tags Should Be 1 example
67-
Keyword Lineno Should Be 1 37
67+
Keyword Lineno Should Be 1 31
6868
Keyword Arguments Should Be 1
6969

7070
Validate keyword 'Arguments'
7171
Keyword Name Should Be 0 Arguments
7272
Keyword Doc Should Be 0 ${EMPTY}
7373
Keyword Tags Should Be 0
74-
Keyword Lineno Should Be 0 45
74+
Keyword Lineno Should Be 0 39
7575
Keyword Arguments Should Be 0 a b=2 *c d=4 e **f
7676

7777
Validate keyword 'Types'

‎atest/testdata/keywords/type_conversion/CustomConverters.py

Copy file name to clipboardExpand all lines: atest/testdata/keywords/type_conversion/CustomConverters.py
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
from datetime import date, datetime
22
from types import ModuleType
3-
from typing import Dict, List, Set, Tuple, Union
4-
5-
try:
6-
from typing import TypedDict
7-
except ImportError:
8-
from typing_extensions import TypedDict
3+
from typing import Dict, List, Set, Tuple, TypedDict, Union
94

105
from robot.api.deco import not_keyword
116

‎atest/testdata/libdoc/BackwardsCompatibility-4.0.json

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-4.0.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"shortdoc": "",
7070
"tags": [],
7171
"source": "BackwardsCompatibility.py",
72-
"lineno": 45
72+
"lineno": 39
7373
},
7474
{
7575
"name": "Simple",
@@ -80,7 +80,7 @@
8080
"example"
8181
],
8282
"source": "BackwardsCompatibility.py",
83-
"lineno": 37
83+
"lineno": 31
8484
},
8585
{
8686
"name": "Special Types",

‎atest/testdata/libdoc/BackwardsCompatibility-4.0.xml

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-4.0.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Examples are only using features compatible with all tested versions.</doc>
1111
<inits>
1212
</inits>
1313
<keywords>
14-
<kw name="Arguments" lineno="45">
14+
<kw name="Arguments" lineno="39">
1515
<arguments repr="a, b=2, *c, d=4, e, **f">
1616
<arg kind="POSITIONAL_OR_NAMED" required="true" repr="a">
1717
<name>a</name>
@@ -37,7 +37,7 @@ Examples are only using features compatible with all tested versions.</doc>
3737
<doc/>
3838
<shortdoc/>
3939
</kw>
40-
<kw name="Simple" lineno="37">
40+
<kw name="Simple" lineno="31">
4141
<arguments repr="">
4242
</arguments>
4343
<doc>Some doc.</doc>

‎atest/testdata/libdoc/BackwardsCompatibility-5.0.json

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-5.0.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"shortdoc": "",
7777
"tags": [],
7878
"source": "BackwardsCompatibility.py",
79-
"lineno": 45
79+
"lineno": 39
8080
},
8181
{
8282
"name": "Simple",
@@ -87,7 +87,7 @@
8787
"example"
8888
],
8989
"source": "BackwardsCompatibility.py",
90-
"lineno": 37
90+
"lineno": 31
9191
},
9292
{
9393
"name": "Special Types",

‎atest/testdata/libdoc/BackwardsCompatibility-5.0.xml

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-5.0.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Examples are only using features compatible with all tested versions.</doc>
1111
<inits>
1212
</inits>
1313
<keywords>
14-
<kw name="Arguments" lineno="45">
14+
<kw name="Arguments" lineno="39">
1515
<arguments repr="a, b=2, *c, d=4, e, **f">
1616
<arg kind="POSITIONAL_OR_NAMED" required="true" repr="a">
1717
<name>a</name>
@@ -37,7 +37,7 @@ Examples are only using features compatible with all tested versions.</doc>
3737
<doc/>
3838
<shortdoc/>
3939
</kw>
40-
<kw name="Simple" lineno="37">
40+
<kw name="Simple" lineno="31">
4141
<arguments repr="">
4242
</arguments>
4343
<doc>Some doc.</doc>

‎atest/testdata/libdoc/BackwardsCompatibility-6.1.json

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-6.1.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"shortdoc": "",
8383
"tags": [],
8484
"source": "BackwardsCompatibility.py",
85-
"lineno": 45
85+
"lineno": 39
8686
},
8787
{
8888
"name": "Simple",
@@ -93,7 +93,7 @@
9393
"example"
9494
],
9595
"source": "BackwardsCompatibility.py",
96-
"lineno": 37
96+
"lineno": 31
9797
},
9898
{
9999
"name": "Special Types",

‎atest/testdata/libdoc/BackwardsCompatibility-6.1.xml

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility-6.1.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Examples are only using features compatible with all tested versions.</doc>
1111
<inits>
1212
</inits>
1313
<keywords>
14-
<kw name="Arguments" lineno="45">
14+
<kw name="Arguments" lineno="39">
1515
<arguments repr="a, b=2, *c, d=4, e, **f">
1616
<arg kind="POSITIONAL_OR_NAMED" required="true" repr="a">
1717
<name>a</name>
@@ -37,7 +37,7 @@ Examples are only using features compatible with all tested versions.</doc>
3737
<doc/>
3838
<shortdoc/>
3939
</kw>
40-
<kw name="Simple" lineno="37">
40+
<kw name="Simple" lineno="31">
4141
<arguments repr="">
4242
</arguments>
4343
<doc>Some doc.</doc>

‎atest/testdata/libdoc/BackwardsCompatibility.py

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/BackwardsCompatibility.py
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
"""
66

77
from enum import Enum
8-
from typing import Union
9-
10-
try:
11-
from typing_extensions import TypedDict
12-
except ImportError:
13-
from typing import TypedDict
14-
8+
from typing import TypedDict, Union
159

1610
ROBOT_LIBRARY_VERSION = "1.0"
1711

‎atest/testdata/libdoc/DataTypesLibrary.py

Copy file name to clipboardExpand all lines: atest/testdata/libdoc/DataTypesLibrary.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import sys
12
from enum import Enum, IntEnum
2-
from typing import Any, Dict, List, Literal, Optional, Union
3+
from typing import Any, Dict, List, Literal, Optional, TypedDict, Union
34

4-
try:
5+
if sys.version_info < (3, 9):
56
from typing_extensions import TypedDict
6-
except ImportError:
7-
from typing import TypedDict
87

98
from robot.api.deco import library
109

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.