Skip to content

Commit

Permalink
Fix overriding imports (#702)
Browse files Browse the repository at this point in the history
This resolves #698.

---------

Co-authored-by: Yuta Kasai <[email protected]>
  • Loading branch information
habara-k and Yang-33 authored Nov 7, 2024
1 parent f78336b commit e6bac30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ private ModelsMap postProcessModelsMap(ModelsMap objs) {
modelsToImport.add("from " + packageName + ".models." + underscore(modelImport) + " import " + modelImport);
}

model.getVendorExtensions().putIfAbsent("x-py-model-imports", modelsToImport);
model.getVendorExtensions().put("x-py-model-imports", modelsToImport);
}
}

Expand Down
1 change: 0 additions & 1 deletion linebot/v3/messaging/models/text_message_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from typing import Dict, Optional
from pydantic.v1 import Field, StrictStr
from linebot.v3.messaging.models.dict[str,_substitution_object] import Dict[str, SubstitutionObject]
from linebot.v3.messaging.models.message import Message
from linebot.v3.messaging.models.quick_reply import QuickReply
from linebot.v3.messaging.models.sender import Sender
Expand Down

0 comments on commit e6bac30

Please sign in to comment.