diff --git a/nats/__init__.py b/nats/__init__.py index aca1fe35..caa07aec 100644 --- a/nats/__init__.py +++ b/nats/__init__.py @@ -11,12 +11,18 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +import pkgutil + from __future__ import annotations from typing import List, Union from .aio.client import Client as NATS +# For compatability with other namespace based packages in the ecosystem (e.g nats-jetstream). +__path__ = pkgutil.extend_path(__path__, __name__) + async def connect( servers: Union[str, List[str]] = ["nats://localhost:4222"],