Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-concurrency
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
Xavier Thompson
typon-concurrency
Commits
ec94fcf5
Commit
ec94fcf5
authored
Aug 02, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary type hints from examples
parent
9a209460
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
trans/tests/a_scanfs.py
trans/tests/a_scanfs.py
+3
-3
trans/tests/builtins_test.py
trans/tests/builtins_test.py
+1
-1
trans/tests/naive_fibonacci_accelerated_fork.py
trans/tests/naive_fibonacci_accelerated_fork.py
+1
-1
trans/tests/naive_fibonacci_fork.py
trans/tests/naive_fibonacci_fork.py
+1
-1
trans/tests/naive_fibonacci_future.py
trans/tests/naive_fibonacci_future.py
+1
-1
trans/tests/naive_fibonacci_sequential.py
trans/tests/naive_fibonacci_sequential.py
+1
-1
No files found.
trans/tests/a_scanfs.py
View file @
ec94fcf5
...
...
@@ -23,7 +23,7 @@ class StatResult:
def
__init__
(
self
):
pass
def
stat_result_to_ours
(
stat_result
:
os
.
stat_result
):
def
stat_result_to_ours
(
stat_result
):
res
=
StatResult
()
res
.
st_mode
=
stat_result
.
st_mode
res
.
st_ino
=
stat_result
.
st_ino
...
...
@@ -51,7 +51,7 @@ class Tree:
self
.
stat
=
stat
self
.
childs
=
{}
def
compute_hashes
(
entry_path
,
tree
:
Tree
):
def
compute_hashes
(
entry_path
,
tree
):
with
open
(
entry_path
,
"rb"
)
as
f
:
md5
=
hashlib
.
md5
()
sha1
=
hashlib
.
sha1
()
...
...
@@ -75,7 +75,7 @@ def compute_hashes(entry_path, tree: Tree):
tree
.
sha512
=
sha512
.
hexdigest
()
def
construct_fs_tree
(
cur_tree
:
Tree
,
path
:
str
,
dev_whitelist
,
ignored_dirs
:
list
[
str
]
):
def
construct_fs_tree
(
cur_tree
,
path
,
dev_whitelist
,
ignored_dirs
):
path_stat
=
cur_tree
.
stat
if
not
path_stat
.
st_dev
in
dev_whitelist
:
return
cur_tree
...
...
trans/tests/builtins_test.py
View file @
ec94fcf5
...
...
@@ -20,7 +20,7 @@ glob = 5
# e = d + 1
# print(e)
def
f
(
x
:
int
):
def
f
(
x
):
return
x
+
1
...
...
trans/tests/naive_fibonacci_accelerated_fork.py
View file @
ec94fcf5
from
typon
import
fork
,
sync
def
fibo
(
n
:
int
)
->
int
:
def
fibo
(
n
)
:
if
n
<
2
:
return
n
a
=
fibo
(
n
-
1
)
...
...
trans/tests/naive_fibonacci_fork.py
View file @
ec94fcf5
from
typon
import
fork
,
sync
def
fibo
(
n
:
int
)
->
int
:
def
fibo
(
n
)
:
if
n
<
2
:
return
n
a
=
fork
(
lambda
:
fibo
(
n
-
1
))
...
...
trans/tests/naive_fibonacci_future.py
View file @
ec94fcf5
from
typon
import
future
def
fibo
(
n
:
int
)
->
int
:
def
fibo
(
n
)
:
if
n
<
2
:
return
n
a
=
future
(
lambda
:
fibo
(
n
-
1
))
...
...
trans/tests/naive_fibonacci_sequential.py
View file @
ec94fcf5
def
fibo
(
n
:
int
):
def
fibo
(
n
):
if
n
<
2
:
return
n
a
=
fibo
(
n
-
1
)
...
...
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