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

[BUG] - cannot import name 'DictIntStrAny' from 'fastapi.encoders #98

Closed
lifengmds opened this issue Dec 25, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@lifengmds
Copy link

Environment

  • fastapi version is: 0.104.1
  • fastapi-responseschema version is: branch dependabot/pip/master/fastapi-0.104.1
  • python version is: 3.9

Describe the bug
from .interfaces import AbstractResponseSchema
File ".venv/lib/python3.9/site-packages/fastapi_responseschema/interfaces.py", line 8, in
from fastapi.encoders import DictIntStrAny, SetIntStr
ImportError: cannot import name 'DictIntStrAny' from 'fastapi.encoders' (.venv/lib/python3.9/site-packages/fastapi/encoders.py)

@lifengmds lifengmds added the bug Something isn't working label Dec 25, 2023
@lifengmds lifengmds changed the title [BUG] - Something is not working [BUG] - cannot import name 'DictIntStrAny' from 'fastapi.encoders Dec 25, 2023
@acwazz
Copy link
Owner

acwazz commented Jan 3, 2024

Hello, first of all thanks for reporting this issue. I am working on extending support for fastapi>=0.100.0 and python==3.12.
I plan to release it as soon as possible (hopefully this week).

I will keep you updated on this ticket.

@acwazz
Copy link
Owner

acwazz commented Jan 3, 2024

Well, looks like it wasn't a long task, here you go: https://github.com/acwazz/fastapi-responseschema/releases/tag/2.1.0

I will close this issue, feel free to reopen if you experience any problem.

@acwazz acwazz closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants