Skip to content

[dateparser] Improve stubs#15393

Open
donbarbos wants to merge 1 commit intopython:mainfrom
donbarbos:complete-dateparser
Open

[dateparser] Improve stubs#15393
donbarbos wants to merge 1 commit intopython:mainfrom
donbarbos:complete-dateparser

Conversation

@donbarbos
Copy link
Contributor

@donbarbos donbarbos commented Feb 8, 2026

  • Add attributes to Settings class
  • Functions with settings params actually accepts Settings (or dict only if has @apply_settings decorator)
  • Use TypeVar for date params that are used as return objects
  • Use collections.abc.Set instead of set since there is an isinstance check specifically for collections.abc.Set
  • Annotated many other parameters

* Functions with `settings` params actually accepts `Settings` (or
  `dict` only if has `@apply_settings` decorator)
* Use `TypeVar` for date params that are used as return objects
* Use `collections.abc.Set` instead of `set` since there is an
  `isinstance` check specifically for `collections.abc.Set`
* Annotated many other parameters
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

1 participant