Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
e303e88f
Commit
e303e88f
authored
Oct 01, 2019
by
Stephan Seitz
Browse files
Add TypedSymbol.reversed/canonical
parent
7163fca0
Changes
1
Show whitespace changes
Inline
Side-by-side
pystencils/data_types.py
View file @
e303e88f
...
...
@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol):
def
__getnewargs__
(
self
):
return
self
.
name
,
self
.
dtype
@
property
def
canonical
(
self
):
return
self
@
property
def
reversed
(
self
):
return
self
def
create_type
(
specification
):
"""Creates a subclass of Type according to a string or an object of subclass Type.
...
...
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