Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
434aef55
Commit
434aef55
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
TEST FIX
parent
fe64ead7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lolwut
+0
-1
0 additions, 1 deletion
lolwut
satella/coding/typecheck.py
+2
-1
2 additions, 1 deletion
satella/coding/typecheck.py
satella/instrumentation/instrument.py
+3
-0
3 additions, 0 deletions
satella/instrumentation/instrument.py
with
5 additions
and
2 deletions
lolwut
deleted
100644 → 0
+
0
−
1
View file @
fe64ead7
{"a":2}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
satella/coding/typecheck.py
+
2
−
1
View file @
434aef55
...
@@ -234,6 +234,8 @@ class CallSignature(object):
...
@@ -234,6 +234,8 @@ class CallSignature(object):
def
__typeinfo_to_tuple_of_types
(
typeinfo
):
def
__typeinfo_to_tuple_of_types
(
typeinfo
):
if
typeinfo
==
'
self
'
:
return
None
if
typeinfo
is
None
:
if
typeinfo
is
None
:
return
(
type
(
None
),)
return
(
type
(
None
),)
elif
typeinfo
==
int
and
six
.
PY2
:
elif
typeinfo
==
int
and
six
.
PY2
:
...
@@ -281,7 +283,6 @@ def typed(*t_args, **t_kwargs):
...
@@ -281,7 +283,6 @@ def typed(*t_args, **t_kwargs):
:param t_kwargs:
:param t_kwargs:
"""
"""
t_args
=
[
q
if
t_args
!=
'
self
'
else
None
for
q
in
t_args
]
t_args
=
[(
__typeinfo_to_tuple_of_types
(
x
)
if
x
is
not
None
else
None
)
for
x
in
t_args
]
t_args
=
[(
__typeinfo_to_tuple_of_types
(
x
)
if
x
is
not
None
else
None
)
for
x
in
t_args
]
t_retarg
=
t_kwargs
.
get
(
'
returns
'
,
None
)
t_retarg
=
t_kwargs
.
get
(
'
returns
'
,
None
)
...
...
This diff is collapsed.
Click to expand it.
satella/instrumentation/instrument.py
+
3
−
0
View file @
434aef55
...
@@ -10,6 +10,9 @@ from .metrics import Metric, RUNTIME
...
@@ -10,6 +10,9 @@ from .metrics import Metric, RUNTIME
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
DISABLED
=
0
DEBUG
=
1
RUNTIME
=
2
class
InstrumentList
(
list
):
class
InstrumentList
(
list
):
def
__init__
(
self
,
children
):
def
__init__
(
self
,
children
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment