Skip to content

Adding type hints to SB context manager #3788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Abdelgha-4
Copy link

Related to #3167 and #3402.

This will have the same effect as:

from seleniumbase import SB, BaseCase

sb: BaseCase
with SB(...) as sb:
    ...

without having to explicitly type sb: BaseCase, enabling IntelliSense in editors.
Before:
image

After:
image

Related to seleniumbase#3167 and seleniumbase#3402.

This will have the same effect as:
```python
from seleniumbase import SB, BaseCase

sb: BaseCase
with SB(...) as sb:
    ...
```
without having to explicitly type `sb: BaseCase`, enabling IntelliSense in editors
@mdmintz
Copy link
Member

mdmintz commented Jun 3, 2025

Included with #3792.

@mdmintz mdmintz closed this Jun 3, 2025
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.

2 participants