Repository navigation
DataTypes in Libdoc Specs - #3743
Conversation
e5a68dd to
699a7ed
Compare
1178595 to
b43e57b
Compare
56b5908 to
1842479
Compare
36bfcfe to
b4ba177
Compare
896ed4c to
594b4e0
Compare
e076b8c to
ceafc4b
Compare
ceafc4b to
e7681ca
Compare
Codecov Report
@@ Coverage Diff @@
## master #3743 +/- ##
==========================================
+ Coverage 74.43% 74.45% +0.03%
==========================================
Files 216 217 +1
Lines 17759 17930 +171
Branches 2884 2915 +31
==========================================
+ Hits 13217 13348 +131
- Misses 4049 4082 +33
- Partials 493 500 +7
Continue to review full report at Codecov.
|
7facd50 to
937339f
Compare
|
|
||
| from robot.api import logger | ||
| from robot.utils import CONSOLE_ENCODING, SYSTEM_ENCODING, unicode | ||
| from robot.utils import PY_VERSION, CONSOLE_ENCODING, SYSTEM_ENCODING, unicode |
| ExtTypedDictType = type(ExtTypedDict('TypedDictDummy', {})) | ||
| except ImportError: | ||
| class ExtTypedDictType(object): | ||
| pass |
There was a problem hiding this comment.
Are these imports needed anymore? If they are, couldn't they be imported from the new datatypesdoc module?
| 'type': item.get('type'), | ||
| 'required': required}) | ||
| return TypedDictDoc(name=dt.get('name'), | ||
| type='TypedDict', |
There was a problem hiding this comment.
Needing to pass TypedDict as type explicitly is somewhat strange. Couldn't that be de default with TypedDictDoct?
| from typing_extensions import TypedDict | ||
| return True | ||
| except ImportError: | ||
| return PY_VERSION[0] == 3 and PY_VERSION[1] >= 9 |
There was a problem hiding this comment.
Shouldn't this be named something like is_typeddict_supported?
|
|
||
| def test_DataTypesLibrary_py(self): | ||
| if PY_VERSION[0] == 3 and PY_VERSION[1] >= 7: | ||
| run_libdoc_and_validate_json('DataTypesLibrary.py') |
There was a problem hiding this comment.
I'd prefer creating the test only when it's applicable and comparing version as a tuple:
if PY_VERSION > (3, 7):
def test_DataTypesLibrary_py(self):
...| @@ -1 +1,2 @@ | |||
| xmlschema | |||
| typing-extensions; python_version == '3.7' | |||
There was a problem hiding this comment.
This should be in atest/requirements.txt or in utest/requirements.txt that's read by the former, not here.
|
Fixed problems mentioned in above comments in 50788fd. |
Add them to specs (robotframework#3607) and show in HTML (robotframework#3783). Few things still to be fixed. See PR robotframework#3743 for details.
No description provided.