-
Notifications
You must be signed in to change notification settings - Fork 58
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 missing countries #32
Conversation
Great! Thank you @EssaAlshammri Can you run pip-tools to refresh the dependencies to fix the CI/CD |
I'm sorry I didn't grasp that! |
Yes you can install |
Oh yeah I did that and it complained about double quotes. should I escape them ? |
When I escape single quotes it says: and when I enclose them with double ones it says: currently it looks like this CountryInfo(
'DZ',
'DZA',
'012',
'Algeria',
"People's Democratic Republic of Algeria",
), |
@EssaAlshammri we can change the configuration regarding |
by using
or
? |
or this way
|
👍🏻 |
should I push the changes made by |
yes |
|
I will fix it later, its regarding some changes in the logic 🙏🏻 Thank you @EssaAlshammri |
thank you :) test aren't passing too |
side note
this country doesn't have a numeric code I guess something has to be done either delete it or write something in that field to indecate it doesn't have one.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there seem to be a lots of changes here not related to adding countries, and changing quotes is making this change very hard to review.
Also this doesn't really follow what I suggested in #24.
@yezz123 please hold off on merging unless the change is trivial. I think really we need to revert this, or revert a lot of the changes in main.
field_schema = {} # type: ignore | ||
field_schema.update(type='string', format='color') | ||
return field_schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should just be return {'type': 'string', 'format': 'color'}
|
||
from pydantic_core import PydanticCustomError, core_schema | ||
|
||
from pydantic.annotated import GetCoreSchemaHandler | ||
|
||
T = TypeVar("T") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we using double quotes in this file?
as disscused in #11
@yezz123