Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
2d49359b
Commit
2d49359b
authored
Nov 08, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug ERROR:root:module 'typing' has no attribute 'GenericMeta'
parent
aff2a5db
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
misc.xml
sure_tosca-flask-server/.idea/misc.xml
+1
-1
sure_tosca-flask-server.iml
sure_tosca-flask-server/.idea/sure_tosca-flask-server.iml
+4
-2
requirements.txt
sure_tosca-flask-server/requirements.txt
+1
-1
util.py
sure_tosca-flask-server/sure_tosca/util.py
+3
-3
No files found.
sure_tosca-flask-server/.idea/misc.xml
View file @
2d49359b
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
6
(sure_tosca-flask-server)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
7
(sure_tosca-flask-server)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"PyCharmProfessionalAdvertiser"
>
<component
name=
"PyCharmProfessionalAdvertiser"
>
<option
name=
"shown"
value=
"true"
/>
<option
name=
"shown"
value=
"true"
/>
</component>
</component>
...
...
sure_tosca-flask-server/.idea/sure_tosca-flask-server.iml
View file @
2d49359b
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<content
url=
"file://$MODULE_DIR$"
>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.6 (sure_tosca-flask-server)"
jdkType=
"Python SDK"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/venv"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.7 (sure_tosca-flask-server)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
<component
name=
"TestRunnerService"
>
<component
name=
"TestRunnerService"
>
...
...
sure_tosca-flask-server/requirements.txt
View file @
2d49359b
sure_tosca-flask-server/sure_tosca/util.py
View file @
2d49359b
...
@@ -23,10 +23,10 @@ def _deserialize(data, klass):
...
@@ -23,10 +23,10 @@ def _deserialize(data, klass):
return
deserialize_date
(
data
)
return
deserialize_date
(
data
)
elif
klass
==
datetime
.
datetime
:
elif
klass
==
datetime
.
datetime
:
return
deserialize_datetime
(
data
)
return
deserialize_datetime
(
data
)
elif
type
(
klass
)
==
typing
.
GenericMeta
:
elif
hasattr
(
klass
,
'__origin__'
)
:
if
klass
.
__
extra
__
==
list
:
if
klass
.
__
origin
__
==
list
:
return
_deserialize_list
(
data
,
klass
.
__args__
[
0
])
return
_deserialize_list
(
data
,
klass
.
__args__
[
0
])
if
klass
.
__
extra
__
==
dict
:
if
klass
.
__
origin
__
==
dict
:
return
_deserialize_dict
(
data
,
klass
.
__args__
[
1
])
return
_deserialize_dict
(
data
,
klass
.
__args__
[
1
])
else
:
else
:
return
deserialize_model
(
data
,
klass
)
return
deserialize_model
(
data
,
klass
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment