Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
ca039879
Commit
ca039879
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
issue
#56
WIP - Fix client _endpoint type test
parent
09b11fa9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/api/client.py
+2
-2
2 additions, 2 deletions
duniterpy/api/client.py
with
2 additions
and
2 deletions
duniterpy/api/client.py
+
2
−
2
View file @
ca039879
...
...
@@ -190,7 +190,7 @@ class Client:
:param session: Aiohttp client session (optional, default None)
:param proxy: Proxy server as hostname:port
"""
if
typ
e
(
endpoint
)
is
str
:
if
isinstanc
e
(
_
endpoint
,
str
)
:
# Endpoint Protocol detection
self
.
endpoint
=
endpoint
.
endpoint
(
_endpoint
)
else
:
...
...
@@ -277,7 +277,7 @@ class Client:
async
def
__call__
(
self
,
_function
:
Callable
,
*
args
:
any
,
**
kwargs
:
any
)
->
any
:
"""
Call the _function given with the args given
So we can have
use
many packages wrapping a REST API
So we can have many packages wrapping a REST API
:param _function: The function to call
:param args: The parameters
...
...
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