Commit Graph

19 Commits

Author SHA1 Message Date
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
92deae41dc Change SwarmConn.conn to muxed_conn 2019-09-23 15:46:50 +08:00
8d2415a404 Move calls to Notifee inside Swarm 2019-09-23 15:01:58 +08:00
d61327f5f9 Add tests for SwarmConn 2019-09-19 16:31:41 +08:00
5307c0506b Change IMuxedConn to INetConn in Notifee 2019-09-19 16:31:41 +08:00
786a03544c Add some loggings to swarm and cosmetic updates 2019-09-14 21:47:49 +08:00
be2c0f122a Fix close behavior 2019-09-10 18:01:14 +08:00
10415cb956 Use ReadWriteCloser for conns and streams 2019-09-05 23:24:17 +08:00
4f7bb30d82 Add INetStream to type StreamReader
TODO: Make stream readers implement `Reader`
2019-09-03 22:59:44 +08:00
c5eda4065d Expose reset method on NetStream 2019-08-26 11:38:39 -07:00
2485a00e24 Modify NetStream to read n bytes 2019-08-16 11:03:16 +08:00
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
9e0a806218 move stream and connection interfaces to abc 2019-08-05 11:17:38 +08:00
e53727d301 Apply PR feedback: fix type hints 2019-07-30 16:28:25 +08:00
a4a0d79f6d Improve import layout 2019-07-30 16:27:29 +08:00
edd164c878 Add type hints to network folder 2019-07-30 16:25:17 +08:00
22d6c97ef3 Add conn to net stream and conn tests 2019-03-15 11:22:20 -04:00
ce6ddb27a9 Migrate to new project structure. 2019-01-09 21:38:56 +03:00