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

Return str for TrainingTaskMappingForTextClassification.__repr__ #3574

Merged

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Aug 16, 2023

Description

This PR returns str for TrainingTaskMappingForTextClassification.__repr__. I assumed the expected return was what the method already contained without the commas.

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Closes #3573

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

Basic test under test/unit/client/feedback/training/test_schema.py to check the return from the __repr__ method is a str.

Checklist

  • I followed the style guidelines of this project
  • I did a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.21% 🎉

Comparison is base (9d62cbe) 90.42% compared to head (4647cf8) 90.63%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3574      +/-   ##
===========================================
+ Coverage    90.42%   90.63%   +0.21%     
===========================================
  Files          255      255              
  Lines        13530    13538       +8     
===========================================
+ Hits         12234    12270      +36     
+ Misses        1296     1268      -28     
Files Changed Coverage Δ
src/argilla/client/feedback/training/schemas.py 87.50% <ø> (ø)
src/argilla/server/contexts/accounts.py 97.18% <100.00%> (+0.04%) ⬆️
src/argilla/server/contexts/datasets.py 99.17% <100.00%> (+0.02%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@davidberenstein1957 davidberenstein1957 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, I have had this more often with quicky pressing tab and following GitHub Copilot

@davidberenstein1957 davidberenstein1957 merged commit b4037fa into argilla-io:develop Aug 16, 2023
17 checks passed
@plaguss plaguss deleted the bug/repr-training-task branch August 17, 2023 06:49
artikandri pushed a commit to CLARIN-PL/argilla that referenced this pull request Oct 30, 2023
…rgilla-io#3574)

# Description

This PR returns `str` for
`TrainingTaskMappingForTextClassification.__repr__`. I assumed the
expected return was what the method already contained without the
commas.

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context. List any dependencies that
are required for this change.

Closes argilla-io#3573

**Type of change**
- [x] Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**

Basic test under `test/unit/client/feedback/training/test_schema.py` to
check the return from the `__repr__` method is a `str`.

**Checklist**

- [x] I followed the style guidelines of this project
- [x] I did a self-review of my code
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [ ] I have added relevant notes to the `CHANGELOG.md` file (See
https://keepachangelog.com/)
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.

[BUG] TheTrainingTaskMappingForTextClassification.__repr__ is returning a tuple instead of a str
2 participants