Commit Graph

15 Commits

Author SHA1 Message Date
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
c4105688d1 Fix after rebase 2019-07-30 17:31:08 +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
d716e90e17 Fix on type hints 2019-07-30 16:25:33 +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