Skip to content
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

Add FakeDate to stubs #488

Closed
srittau opened this issue Jan 26, 2023 · 2 comments
Closed

Add FakeDate to stubs #488

srittau opened this issue Jan 26, 2023 · 2 comments

Comments

@srittau
Copy link

srittau commented Jan 26, 2023

I'm using pysqlite3 instead of the built-in sqlite3 module, since I need newer features. Therefore I need to register FakeDate manually as an adapter for pysqlite3. Unfortunately, since FakeDate is not defined in freezegun/api.pyi, my type checkers complain about it. It would be useful to include FakeDate (and potentially other fake classes) in the type stubs.

@finswimmer
Copy link

Hey,

I second this. My use case is, that I write a custom representer for FakeDate in pyyaml.

Thanks a lot for this really cool project 👍

@bblommers
Copy link
Collaborator

Freezegun 1.5.0 has proper (in-line) typing support, so I believe this is fixed.

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

No branches or pull requests

3 participants