Skip to content

Fix Python portability/module dependency issues - #159

Merged
solidpixel merged 2 commits into
mainfrom
issue_147
Dec 8, 2025
Merged

solidpixel merged 2 commits into
mainfrom
issue_147

Conversation

@solidpixel

@solidpixel solidpixel commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

Use typing to improve compatibility with older Python3 versions.

Import Python server services on demand to remove transitive dependencies when unused.

Fixes #147

@solidpixel
solidpixel requested a review from Copilot December 8, 2025 16:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves Python portability by replacing collections.abc.Iterable with typing.Iterable for better compatibility with older Python 3 versions, and implements lazy imports for server services to eliminate unnecessary transitive dependencies when those services are not used.

  • Replaced collections.abc.Iterable with typing.Iterable in the adb module
  • Moved service imports from module-level to function-level in lgl_android_install.py

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lglpy/android/adb.py Changed import from collections.abc.Iterable to typing.Iterable for better Python 3 compatibility
lgl_android_install.py Moved service_gpu_timeline and service_gpu_profile imports to function scope to avoid loading unnecessary dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@solidpixel
solidpixel merged commit f952f5a into main Dec 8, 2025
6 checks passed
@solidpixel
solidpixel deleted the issue_147 branch December 8, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python3 package requirements missing

2 participants