UserGuide icon indicating copy to clipboard operation
UserGuide copied to clipboard

updating style doc for list parameter

Open robotjellyzone opened this issue 2 years ago • 9 comments

Fixes #181

Fix done: Updated the user guide of contribution code to adjust new style following type hints

robotjellyzone avatar Apr 14 '22 09:04 robotjellyzone

@lilyminium @micaela-matta can you please once check this pr and let me know if any changes are needed:)

robotjellyzone avatar Apr 15 '22 11:04 robotjellyzone

Thanks for opening this PR, @robotjellyzone. I see that you've added in type hinting into the example -- could you please also add some text explicitly requesting that people follow type hinting recommendations?

And, ah... @PicoCentauri, did we settle on a style for type hinting? It seems to me that we will have to stick with old style List[int] for a while yet. Even the linked PEP 484 https://peps.python.org/pep-0484/ shows that syntax.

lilyminium avatar Apr 15 '22 15:04 lilyminium

Thanks for opening this PR, @robotjellyzone. I see that you've added in type hinting into the example -- could you please also add some text explicitly requesting that people follow type hinting recommendations?

And, ah... @PicoCentauri, did we settle on a style for type hinting? It seems to me that we will have to stick with old style List[int] for a while yet. Even the linked PEP 484 https://peps.python.org/pep-0484/ shows that syntax.

@lilyminium i have added the note requesting to follow type hints. please check & let me know for any further changes:)

robotjellyzone avatar Apr 16 '22 08:04 robotjellyzone

And, ah... @PicoCentauri, did we settle on a style for type hinting? It seems to me that we will have to stick with old style List[int] for a while yet. Even the linked PEP 484 https://peps.python.org/pep-0484/ shows that syntax.

list[int] only works for python versions larger or equal to 3.9. With this, we have to stick to the old syntax (List[int]) for actual type hinting until we support older versions. In the docs however only list[int] links everything nicely. I have no clue if we should use different syntax in the docs and the type hint? Regardless of our decision, we should make this very clear in the userGuide!

PicoCentauri avatar Apr 16 '22 15:04 PicoCentauri

And @lilyminium can you please check this pr?

robotjellyzone avatar Apr 18 '22 02:04 robotjellyzone

And @lilyminium can you please check this pr?

Please be patient and stop repeatedly tagging. Be respectful of our free labor: It’s a public holiday weekend and we do this in our free time. Your request is not urgent and will be dealt with when possible.

micaela-matta avatar Apr 18 '22 06:04 micaela-matta

And @lilyminium can you please check this pr?

Please be patient and stop repeatedly tagging. Be respectful of our free labor: It’s a public holiday weekend and we do this in our free time. Your request is not urgent and will be dealt with when possible.

Oh so sorry for that!! Yeah actually I knew that I should not tag again but actually you set the deadline yesterday that after 17th no pr will be considered so that's why it was a bit stressing. I hope you can understand and I didn't actually mean to disturb 🙏🏻. . I myself have been a mentor and I know its stressing sometimes but when it's deadline then everyone hurries which I know very well but still sorry if it hurt you in anyway!

robotjellyzone avatar Apr 18 '22 07:04 robotjellyzone

Don’t worry, the warning was mainly meant for people just starting new PRs not for the ones that are mostly done!

micaela-matta avatar Apr 18 '22 08:04 micaela-matta

Also please add yourself to AUTHORS here as well :)

lilyminium avatar Apr 18 '22 08:04 lilyminium