|
21 | 21 |
|
22 | 22 | from mongoengine import document, errors, fields, signals |
23 | 23 |
|
| 24 | + |
24 | 25 | # ---- private imports (for __all__ only) ---- |
25 | | -from mongoengine.synchronous import connection as _sync_connection |
26 | | -from mongoengine.asynchronous import connection as _async_connection |
27 | | -from mongoengine.synchronous import queryset as _sync_queryset |
28 | | -from mongoengine.asynchronous import queryset as _async_queryset |
| 26 | +import mongoengine.base.queryset as _queryset_base |
| 27 | +import mongoengine.synchronous as _sync_modules |
| 28 | +import mongoengine.asynchronous as _async_modules |
29 | 29 |
|
30 | 30 | # ---- public re-exports ---- |
31 | | -from mongoengine.synchronous.connection import * # noqa: F401,F403 |
32 | | -from mongoengine.asynchronous.connection import * # noqa: F401,F403 |
33 | | -from mongoengine.synchronous.queryset import * # noqa: F401,F403 |
34 | | -from mongoengine.asynchronous.queryset import * # noqa: F401,F403 |
| 31 | +from mongoengine.base.queryset import * # noqa: F401,F403 |
| 32 | +from mongoengine.synchronous import * # noqa: F401,F403 |
| 33 | +from mongoengine.asynchronous import * # noqa: F401,F403 |
35 | 34 |
|
36 | 35 | from mongoengine.document import * # noqa: F401,F403 |
37 | 36 | from mongoengine.errors import * # noqa: F401,F403 |
|
42 | 41 | __all__ = ( |
43 | 42 | list(document.__all__) |
44 | 43 | + list(fields.__all__) |
45 | | - + list(_sync_connection.__all__) |
46 | | - + list(_async_connection.__all__) |
47 | | - + list(_sync_queryset.__all__) |
48 | | - + list(_async_queryset.__all__) |
| 44 | + + list(_queryset_base.__all__) |
| 45 | + + list(_sync_modules.__all__) |
| 46 | + + list(_async_modules.__all__) |
49 | 47 | + list(signals.__all__) |
50 | 48 | + list(errors.__all__) |
51 | 49 | ) |
52 | 50 |
|
53 | 51 | # ---- hide internals ---- |
54 | | -del _sync_connection |
55 | | -del _async_connection |
56 | | -del _sync_queryset |
57 | | -del _async_queryset |
| 52 | +del _queryset_base |
| 53 | +del _sync_modules |
| 54 | +del _async_modules |
58 | 55 |
|
59 | 56 | VERSION = (0, 30, 0) |
60 | 57 |
|
|
0 commit comments