Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
5acab5be
Commit
5acab5be
authored
Jun 20, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix recursive call
parent
0f328ac7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
trans/stdlib/__init__.py
trans/stdlib/__init__.py
+4
-1
trans/transpiler/phases/typing/types.py
trans/transpiler/phases/typing/types.py
+1
-1
No files found.
trans/stdlib/__init__.py
View file @
5acab5be
...
@@ -64,12 +64,15 @@ assert(len(["a"]))
...
@@ -64,12 +64,15 @@ assert(len(["a"]))
assert
[
1
,
2
,
3
][
1
]
assert
[
1
,
2
,
3
][
1
]
def
iter
(
x
:
Iterable
[
U
])
->
Iterator
[
U
]:
...
def
next
(
it
:
Iterator
[
U
],
default
:
None
)
->
U
:
def
next
(
it
:
Iterator
[
U
],
default
:
None
)
->
U
:
...
...
# what happens with multiple functions
# what happens with multiple functions
assert
iter
([
"1"
,
"2"
])
def
identity
(
x
:
U
)
->
U
:
def
identity
(
x
:
U
)
->
U
:
...
...
...
...
trans/transpiler/phases/typing/types.py
View file @
5acab5be
...
@@ -113,7 +113,7 @@ class TypeVariable(BaseType):
...
@@ -113,7 +113,7 @@ class TypeVariable(BaseType):
GenMethodFactory
=
Callable
[[
"BaseType"
],
"FunctionType"
]
GenMethodFactory
=
Callable
[[
"BaseType"
],
"FunctionType"
]
@
dataclass
@
dataclass
(
eq
=
False
)
class
TypeOperator
(
BaseType
,
ABC
):
class
TypeOperator
(
BaseType
,
ABC
):
args
:
List
[
BaseType
]
args
:
List
[
BaseType
]
name
:
str
=
None
name
:
str
=
None
...
...
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