11//! Various types defined by the Python interpreter such as `int`, `str` and `tuple`.
22
3- pub use self :: any:: PyAny ;
4- pub use self :: boolobject:: PyBool ;
5- pub use self :: bytearray:: PyByteArray ;
6- pub use self :: bytes:: PyBytes ;
7- pub use self :: capsule:: PyCapsule ;
3+ pub use self :: any:: { PyAny , PyAnyMethods } ;
4+ pub use self :: boolobject:: { PyBool , PyBoolMethods } ;
5+ pub use self :: bytearray:: { PyByteArray , PyByteArrayMethods } ;
6+ pub use self :: bytes:: { PyBytes , PyBytesMethods } ;
7+ pub use self :: capsule:: { PyCapsule , PyCapsuleMethods } ;
88#[ cfg( not( Py_LIMITED_API ) ) ]
99pub use self :: code:: PyCode ;
10- pub use self :: complex:: PyComplex ;
10+ pub use self :: complex:: { PyComplex , PyComplexMethods } ;
1111#[ allow( deprecated) ]
1212#[ cfg( not( Py_LIMITED_API ) ) ]
1313pub use self :: datetime:: timezone_utc;
@@ -16,37 +16,37 @@ pub use self::datetime::{
1616 timezone_utc_bound, PyDate , PyDateAccess , PyDateTime , PyDelta , PyDeltaAccess , PyTime ,
1717 PyTimeAccess , PyTzInfo , PyTzInfoAccess ,
1818} ;
19- pub use self :: dict:: { IntoPyDict , PyDict } ;
19+ pub use self :: dict:: { IntoPyDict , PyDict , PyDictMethods } ;
2020#[ cfg( not( PyPy ) ) ]
2121pub use self :: dict:: { PyDictItems , PyDictKeys , PyDictValues } ;
2222pub use self :: ellipsis:: PyEllipsis ;
23- pub use self :: float:: PyFloat ;
23+ pub use self :: float:: { PyFloat , PyFloatMethods } ;
2424#[ cfg( all( not( Py_LIMITED_API ) , not( PyPy ) ) ) ]
2525pub use self :: frame:: PyFrame ;
26- pub use self :: frozenset:: { PyFrozenSet , PyFrozenSetBuilder } ;
26+ pub use self :: frozenset:: { PyFrozenSet , PyFrozenSetBuilder , PyFrozenSetMethods } ;
2727pub use self :: function:: PyCFunction ;
2828#[ cfg( all( not( Py_LIMITED_API ) , not( PyPy ) ) ) ]
2929pub use self :: function:: PyFunction ;
3030pub use self :: iterator:: PyIterator ;
31- pub use self :: list:: PyList ;
32- pub use self :: mapping:: PyMapping ;
31+ pub use self :: list:: { PyList , PyListMethods } ;
32+ pub use self :: mapping:: { PyMapping , PyMappingMethods } ;
3333pub use self :: memoryview:: PyMemoryView ;
34- pub use self :: module:: PyModule ;
34+ pub use self :: module:: { PyModule , PyModuleMethods } ;
3535pub use self :: none:: PyNone ;
3636pub use self :: notimplemented:: PyNotImplemented ;
3737pub use self :: num:: PyLong ;
3838pub use self :: num:: PyLong as PyInt ;
3939#[ cfg( not( PyPy ) ) ]
4040pub use self :: pysuper:: PySuper ;
41- pub use self :: sequence:: PySequence ;
42- pub use self :: set:: PySet ;
43- pub use self :: slice:: { PySlice , PySliceIndices } ;
41+ pub use self :: sequence:: { PySequence , PySequenceMethods } ;
42+ pub use self :: set:: { PySet , PySetMethods } ;
43+ pub use self :: slice:: { PySlice , PySliceIndices , PySliceMethods } ;
4444#[ cfg( not( Py_LIMITED_API ) ) ]
4545pub use self :: string:: PyStringData ;
46- pub use self :: string:: { PyString , PyString as PyUnicode } ;
47- pub use self :: traceback:: PyTraceback ;
48- pub use self :: tuple:: PyTuple ;
49- pub use self :: typeobject:: PyType ;
46+ pub use self :: string:: { PyString , PyString as PyUnicode , PyStringMethods } ;
47+ pub use self :: traceback:: { PyTraceback , PyTracebackMethods } ;
48+ pub use self :: tuple:: { PyTuple , PyTupleMethods } ;
49+ pub use self :: typeobject:: { PyType , PyTypeMethods } ;
5050
5151/// Iteration over Python collections.
5252///
@@ -332,7 +332,7 @@ mod num;
332332mod pysuper;
333333pub ( crate ) mod sequence;
334334pub ( crate ) mod set;
335- mod slice;
335+ pub ( crate ) mod slice;
336336pub ( crate ) mod string;
337337pub ( crate ) mod traceback;
338338pub ( crate ) mod tuple;
0 commit comments