Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fja
eval
Commits
a9b22c1e
Commit
a9b22c1e
authored
Jun 08, 2021
by
Vladimír Štill
Browse files
lib: Add missing __repr__ to common
parent
999afa32
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/common.py
View file @
a9b22c1e
...
...
@@ -47,6 +47,9 @@ class Character:
def
__hash__
(
self
):
return
hash
(
self
.
name
)
def
__repr__
(
self
)
->
str
:
return
f
"Character(
{
self
.
name
}
)"
class
State
:
def
__init__
(
self
,
name
:
str
):
...
...
@@ -83,6 +86,9 @@ class Eps:
def
__len__
(
self
):
return
0
def
__repr__
(
self
)
->
str
:
return
"Eps()"
class
Emptyset
:
def
__init__
(
self
):
...
...
@@ -93,3 +99,6 @@ class Emptyset:
def
__hash__
(
self
):
return
hash
(
"∅"
)
def
__repr__
(
self
)
->
str
:
return
"Emptyset()"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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