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

Warn users that the python objects being assigned as attributes are converted to the attribute's datatype #708

Open
yzuuang opened this issue Oct 8, 2021 · 1 comment
Labels
🔨 simple fix Likely to be solvable in at most a few hours (full-time). 👩‍🎓 newcomer task Issue that is a good entry point to the source code for a newcomer.
Milestone

Comments

@yzuuang
Copy link

yzuuang commented Oct 8, 2021

Checked for both rdfs:Literal and xsd:string.

@kysrpex
Copy link
Contributor

kysrpex commented Oct 8, 2021

After talking to @yzuuang, the problem is not related to OSP-core. However, having a warning that Python objects are being converted to the correct data types as they are assigned to attributes can be helpful for less Python-savy users. Obviously it should be possible to disable the warning.

@kysrpex kysrpex added 🔨 simple fix Likely to be solvable in at most a few hours (full-time). 👩‍🎓 newcomer task Issue that is a good entry point to the source code for a newcomer. labels Oct 8, 2021
@kysrpex kysrpex changed the title Wrapper.update() change a single value into a tuple ~Wrapper.update() change a single value into a tuple~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype Oct 8, 2021
@kysrpex kysrpex changed the title ~Wrapper.update() change a single value into a tuple~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype ~~Wrapper.update() change a single value into a tuple~~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype Oct 8, 2021
@kysrpex kysrpex changed the title ~~Wrapper.update() change a single value into a tuple~~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype ~Wrapper.update() change a single value into a tuple~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype Oct 8, 2021
@kysrpex kysrpex changed the title ~Wrapper.update() change a single value into a tuple~ Warn users that the python objects being assigned as attributes are converted to the attribute's datatype Warn users that the python objects being assigned as attributes are converted to the attribute's datatype Oct 8, 2021
@kysrpex kysrpex added this to the v4.0.0 milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 simple fix Likely to be solvable in at most a few hours (full-time). 👩‍🎓 newcomer task Issue that is a good entry point to the source code for a newcomer.
Projects
None yet
Development

No branches or pull requests

2 participants