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
67d55b9b
Commit
67d55b9b
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
6
parent
dceee150
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
satella/coding/typecheck.py
+2
-2
2 additions, 2 deletions
satella/coding/typecheck.py
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
with
3 additions
and
3 deletions
satella/coding/typecheck.py
+
2
−
2
View file @
67d55b9b
...
@@ -477,14 +477,14 @@ def checked_coerce(*t_args, **t_kwargs):
...
@@ -477,14 +477,14 @@ def checked_coerce(*t_args, **t_kwargs):
def
for_argument
(
*
t_ops
,
**
t_kwops
):
def
for_argument
(
*
t_ops
,
**
t_kwops
):
t_ops
=
[
None
for
op
in
t_ops
if
op
==
'
self
'
]
t_ops
=
[
__NOP
if
op
==
'
self
'
else
op
for
op
in
t_ops
]
def
outer
(
fun
):
def
outer
(
fun
):
@functools.wraps
(
fun
)
@functools.wraps
(
fun
)
def
inner
(
*
args
,
**
kwargs
):
def
inner
(
*
args
,
**
kwargs
):
# add extra 'None' argument if unbound method
# add extra 'None' argument if unbound method
assert
len
(
args
)
>=
len
(
t_ops
)
assert
len
(
args
)
>=
len
(
t_ops
)
return
fun
(
*
((
op
or
__NOP
)(
arg
)
for
arg
,
op
in
six
.
moves
.
zip_longest
(
args
,
t_ops
)),
return
fun
(
*
((
__NOP
if
op
is
None
else
op
)(
arg
)
for
arg
,
op
in
six
.
moves
.
zip_longest
(
args
,
t_ops
)),
**
{
k
:
t_kwops
.
get
(
k
,
__NOP
)(
v
)
for
k
,
v
in
kwargs
.
items
()})
**
{
k
:
t_kwops
.
get
(
k
,
__NOP
)(
v
)
for
k
,
v
in
kwargs
.
items
()})
return
inner
return
inner
return
outer
return
outer
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
67d55b9b
[metadata]
[metadata]
name
= satella
name
= satella
version
= 2.0.19rc
5
version
= 2.0.19rc
6
description
-file = README.md
description
-file = README.md
author
= Piotr Maślanka
author
= Piotr Maślanka
author_email
= piotrm@smok.co
author_email
= piotrm@smok.co
...
...
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