<filename>test/sync_tests/services/scan_package/service2.py
from dependency_injector import singleton


class Service2:
    pass


@singleton
def service2_factory() -> Service2:
    return Service2()

<filename>test/sync_tests/services/scan_package/service2.py
from dependency_injector import singleton


class Service2:
    pass


@singleton
def service2_factory() -> Service2:
    return Service2()
