Skip to content

Conversation

@kp-cat
Copy link
Member

@kp-cat kp-cat commented Jan 28, 2026

Describe the purpose of your pull request

The ConfigCatOptions.__init__ has a default value of PollingMode.auto_poll() which returns AutoPollingMode. Pyright infers the type of polling_mode as AutoPollingMode from this default value, but the method should accept any PollingMode subclass.

We can introduce type information because Python 2.7 is no longer supported.

Related issues (only if applicable)

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.

@kp-cat kp-cat requested a review from a team as a code owner January 28, 2026 10:21
@sonarqubecloud
Copy link

@kp-cat kp-cat merged commit 25b127f into master Jan 28, 2026
84 of 86 checks passed
@kp-cat kp-cat deleted the 77-reportargumenttype-error-during-type-checking-when-using-non-default-polling_mode branch January 28, 2026 10:36
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.

reportArgumentType error during type checking when using non-default polling_mode

3 participants