mhchia
ba0fb8a833
Fix: use pass
over ...
(Ellipse)
...
Use `...`(Ellipse) only in abstract methods.
2020-02-05 20:36:42 +08:00
mhchia
42bc4d5d06
INetworkService
implement ServiceAPI
2020-01-26 23:55:31 +08:00
mhchia
f0c4254bbd
Use Service
instead of ServiceAPI
...
To fix error with async-service==0.1.0a5
2020-01-18 00:31:39 +08:00
mhchia
3372c32432
Fix examples and modify new_node
...
- Fix examples `chat.py` and `echo.py`
- Use trio directly, instead of `trio-asyncio`
- Remove redundant code
- Change entry API `new_node` to `new_host_trio`
2019-12-24 18:03:18 +08:00
Dominik Muhs
bafdd8512d
Enforce pre-summary newline in docstrings
2019-10-24 20:10:45 +02:00
Dominik Muhs
eef505f2d9
Add automatic docstring formatter and apply
2019-10-24 08:41:10 +02:00
mhchia
b8b5ac5e06
Add test for notifee disconnected
2019-09-19 16:31:41 +08:00
mhchia
6cb033fd1f
Refactor multiselect
out of Swarm
to BasicHost
2019-09-19 13:59:50 +08:00
mhchia
0bd213bbb7
Refactor mplex and start to add close detection
2019-09-19 13:56:05 +08:00
NIC619
786a03544c
Add some loggings to swarm and cosmetic updates
2019-09-14 21:47:49 +08:00
mhchia
c61a06706a
Refactor interop tests and factories
...
- Add `close` and `disconnect` in `Host`
- Add `close` and `close_peer` in `Network`
- Change `IListener.close` to async, to await for server's closing
- Add factories for security transports, and modify `HostFactory`
2019-08-29 21:38:06 +08:00
mhchia
16a4fd33c1
PR feedbacks
...
- Move exceptions to exceptions.py
- Raise `UpgradeFailure` in upgrader
- Refine the try/catch for upgraders in swarm
2019-08-22 22:53:49 +08:00
Alex Stokes
3debd2c808
Run black
and isort
w/ the new config
2019-08-13 14:36:42 -07:00
Chih Cheng Liang
28f6de37ee
Fix the rest of the typing hints ( #232 )
...
* ignore kad
* fix swarm, and minor
* fix init and swarm
* ignore pb
* enable mypy
* fix basic host
* fix tcp
* fix mplex
* add typing for pb
* skip format pyi
* [mypy] no need to ignore pb now
* add typing to chat
2019-08-11 16:47:54 +08:00
Chih Cheng Liang
c536aa3e07
flake8
2019-08-08 16:09:02 +08:00
Chih Cheng Liang
5903012e0e
add typing to protocol_muxer
2019-08-08 16:09:02 +08:00
Chih Cheng Liang
9e0a806218
move stream and connection interfaces to abc
2019-08-05 11:17:38 +08:00
Alex Stokes
7477b29508
run black w/ extended line length
2019-08-04 12:37:41 +08:00
Alex Stokes
c8005c8113
Run isort
in repo
2019-08-03 17:50:14 +08:00
NIC619
3a4b592a5a
Fix missing asterisk
2019-08-02 15:06:39 +08:00
NIC619
924e965537
Change argument name of Network.listen
and blakc format
2019-08-02 14:45:59 +08:00
Alex Stokes
0ae9840928
Run black
over repo
2019-07-31 15:00:12 -07:00
NIC619
5e215901c0
Apply PR feedback
2019-07-30 23:41:28 +08:00
NIC619
c4105688d1
Fix after rebase
2019-07-30 17:31:08 +08:00
NIC619
e53727d301
Apply PR feedback: fix type hints
2019-07-30 16:28:25 +08:00
NIC619
2d4e23cfe2
Fix cyclic import and lint
2019-07-30 16:28:05 +08:00
NIC619
a4a0d79f6d
Improve import layout
2019-07-30 16:27:29 +08:00
NIC619
d716e90e17
Fix on type hints
2019-07-30 16:25:33 +08:00
NIC619
edd164c878
Add type hints to network folder
2019-07-30 16:25:17 +08:00
Stuckinaboot
a5fa053815
Add return value to Notify
2019-03-15 11:22:20 -04:00
Stuckinaboot
f7d1bb3a89
Add notify function to network interface
2019-03-15 11:22:20 -04:00
Alexander Koshkin
ce6ddb27a9
Migrate to new project structure.
2019-01-09 21:38:56 +03:00