File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ pub(crate) struct EventLoopRunState {
5252 tick_last : u128 ,
5353}
5454
55- #[ pyclass( frozen, subclass) ]
55+ #[ pyclass( frozen, subclass, module = "rloop._rloop" ) ]
5656pub struct EventLoop {
5757 idle : atomic:: AtomicBool ,
5858 io : Arc < Mutex < Poll > > ,
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ impl Handle for CBHandleOneArg {
135135 }
136136}
137137
138- #[ pyclass( frozen, name = "CBHandle" ) ]
138+ #[ pyclass( frozen, name = "CBHandle" , module = "rloop._rloop" ) ]
139139pub ( crate ) struct PyHandle {
140140 pub handle : HandleRef ,
141141}
@@ -151,7 +151,7 @@ impl PyHandle {
151151 }
152152}
153153
154- #[ pyclass( frozen, name = "TimerHandle" ) ]
154+ #[ pyclass( frozen, name = "TimerHandle" , module = "rloop._rloop" ) ]
155155pub ( crate ) struct PyTimerHandle {
156156 pub handle : HandleRef ,
157157 #[ pyo3( get) ]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ enum ServerType {
1010 // Unix,
1111}
1212
13- #[ pyclass( frozen, subclass) ]
13+ #[ pyclass( frozen, subclass, module = "granian._granian" ) ]
1414pub ( crate ) struct Server {
1515 #[ pyo3( get) ]
1616 _loop : Py < EventLoop > ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::os::raw::c_int;
33
44use crate :: py:: sock;
55
6- #[ pyclass( frozen) ]
6+ #[ pyclass( frozen, module = "granian._granian" ) ]
77pub ( crate ) struct SocketWrapper {
88 sock : PyObject ,
99}
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ impl TCPStream {
212212 }
213213}
214214
215- #[ pyclass( frozen) ]
215+ #[ pyclass( frozen, name = "TCPTransport" , module = "granian._granian" ) ]
216216pub ( crate ) struct PyTCPTransport {
217217 pub fd : usize ,
218218 extra : HashMap < String , PyObject > ,
You can’t perform that action at this time.
0 commit comments