Skip to content

Commit 7ecab38

Browse files
committed
[docs] mock out pylsqpack for readthedocs
1 parent 1580fef commit 7ecab38

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/conf.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ class MockCrypto:
3333
HeaderProtection = None
3434

3535

36-
sys.modules.update({"aioquic._buffer": MockBuffer()})
37-
sys.modules.update({"aioquic._crypto": MockCrypto()})
36+
class MockPylsqpack:
37+
Decoder = None
38+
Encoder = None
39+
40+
41+
sys.modules.update({
42+
"aioquic._buffer": MockBuffer(),
43+
"aioquic._crypto": MockCrypto(),
44+
"pylsqpack": MockPylsqpack(),
45+
})
3846

3947
# -- General configuration ------------------------------------------------
4048

0 commit comments

Comments
 (0)