pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/appium/python-client/pull/1203

/global-b40ec823a1a6a1af.css" /> fix: fix type checker errors for pyright by ilotoki0804 · Pull Request #1203 · appium/python-client · GitHub
Skip to content

fix: fix type checker errors for pyright#1203

Merged
KazuCocoa merged 10 commits intoappium:masterfrom
ilotoki0804:ilotoki0804-patch-1
Mar 5, 2026
Merged

fix: fix type checker errors for pyright#1203
KazuCocoa merged 10 commits intoappium:masterfrom
ilotoki0804:ilotoki0804-patch-1

Conversation

@ilotoki0804
Copy link
Copy Markdown
Contributor

For a more detailed explanation, please refer to this link.

In `py.typed` modules, imported symbols considered private[^1], which is not importable by users.
To become public interface, explicit `__all__` symbol is required.

[^1]: https://typing.python.org/en/latest/spec/distributing.html#library-interface-public-and-private-symbols
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 2, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

Comment thread appium/protocols/webdriver/can_execute_scripts.py
Added deprecation warnings for unimplemented methods in CanExecuteScripts protocol.

from typing import Any, List, Optional, Protocol
from typing import Any, List, Optional, Protocol, TYPE_CHECKING
from warings import deprecated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

warings?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Opps😅

# TODO: remove `if not TYPE_CHECKING` guard after properly implement them
# The use of these methods will produce DeprecationWarnings at runtime
if not TYPE_CHECKING:
@deprecated("pin_script is not yet implemented")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would rather say is deprecated for removal

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I assumed those methods would be implemented later. If there are no plans to do so, I will make the changes as you suggested.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am not sure it makes sense to implement them in mobile context, but it still makes sense to confirm that with other maintainers

Comment thread appium/webdriver/__init__.py Outdated
Appium Python Client: WebDriver module
"""

__all__ = ["Remote", "WebElement"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change looks reasonable to me. This fixes mypy --strict also.

Copy link
Copy Markdown
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

Lg to me. Waiting for the CI result

@KazuCocoa KazuCocoa changed the title fix: Fix type checker errors fix: fix type checker errors for pyright Mar 5, 2026
@KazuCocoa KazuCocoa merged commit cd4699a into appium:master Mar 5, 2026
13 checks passed
@KazuCocoa KazuCocoa added the size:S contribution size: S label Apr 2, 2026
@KazuCocoa
Copy link
Copy Markdown
Member

Hi @ilotoki0804, congrats: the Appium project wants to compensate you for this contribution! Please reply to this comment mentioning @jlipps and @KazuCocoa and sharing your OpenCollective account name, so that we can initiate payment! Or let us know if you decline to receive compensation via OpenCollective. Thank you!

@ilotoki0804
Copy link
Copy Markdown
Contributor Author

@jlipps @KazuCocoa My OpenCollective username is ilotoki0804. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S contribution size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy