Skip to content

Conversation

@recursiveAF
Copy link
Owner

No description provided.

Jack Jackson added 2 commits May 6, 2025 00:56
Repository owner deleted a comment from recurseml bot May 7, 2025
@recursiveAF recursiveAF closed this May 7, 2025
@recursiveAF recursiveAF reopened this May 7, 2025
generate_unique_id_function=custom_generate_unique_id,
)

class User(BaseModel):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks 1 usages of BaseModel across 1 files

Symbol: BaseModel

Class User inherits from BaseModel but BaseModel is not imported from pydantic, which will cause a NameError at runtime. Add 'from pydantic import BaseModel' to fix this issue.

Affected locations

class User(BaseModel):


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

user_dependency = User(username="admin")

@app.get("/broken-endpoint")
def read_user(user: User = Depends(user_dependency)):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks 1 usages of Depends across 1 files

Symbol: Depends

Function read_user uses Depends but Depends is not imported from fastapi, which will cause a NameError at runtime. Add 'from fastapi import Depends' to fix this issue.

Affected locations

def read_user(user: User = Depends(user_dependency)):


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

@recurseml
Copy link

recurseml bot commented May 7, 2025

😱 Found 2 issues. Time to roll up your sleeves! 😱

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