Skip to content

Rename view_msg to view_email for consistency#9

Merged
jph00 merged 5 commits into
mainfrom
rename
May 25, 2026
Merged

Rename view_msg to view_email for consistency#9
jph00 merged 5 commits into
mainfrom
rename

Conversation

@ncoop57
Copy link
Copy Markdown
Contributor

@ncoop57 ncoop57 commented May 5, 2026

Renames view_msg() and view_msgs() to view_email() and view_emails() for
better API consistency and clarity.

  • Updates function names in core.py
  • Updates documentation in README.md
  • Updates tool list in init.py

This improves the API naming convention to use the more standard 'email' terminology throughout.

@ncoop57 ncoop57 added the enhancement New feature or request label May 5, 2026
@ncoop57 ncoop57 requested a review from jph00 May 5, 2026 19:22
@jph00
Copy link
Copy Markdown
Contributor

jph00 commented May 5, 2026

I actually think this needs to be changed everywhere. msgs->emails, Message->Email, etc. Consistency seems helpful. WDYT?

@jph00
Copy link
Copy Markdown
Contributor

jph00 commented May 10, 2026

bumping this @ncoop57

@ncoop57
Copy link
Copy Markdown
Contributor Author

ncoop57 commented May 12, 2026

sorry, just saw the comment. Will make the change, thanks @jph00

@ncoop57 ncoop57 marked this pull request as draft May 12, 2026 20:34
Comment thread solvemail/core.py
Comment thread tests/test_e2e.py Outdated
@@ -1,5 +1,5 @@
import time,uuid,pytest
from fastcore.test import test_eq,test,ne
from fastcore.test import test_eq as eq, test as check
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why this change btw? eq normally is fastcore's eq() function or python's operator.eq() - having it as test_eq is kinda confusing IMO. And we use test() quite a bit so renaming it is also confusing!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

codex got carried away. Reverting these

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

codex did it as it said that pytest was thinking they were things that needed testing hehe

@jph00
Copy link
Copy Markdown
Contributor

jph00 commented May 13, 2026

What's needed to move this out of draft @ncoop57 ?

@ncoop57 ncoop57 marked this pull request as ready for review May 23, 2026 12:42
@ncoop57
Copy link
Copy Markdown
Contributor Author

ncoop57 commented May 23, 2026

@jph00 should be ready now. Sorry for the delay

@ncoop57
Copy link
Copy Markdown
Contributor Author

ncoop57 commented May 24, 2026

@jph00 merged the audit updates, so should be good to go

@jph00 jph00 merged commit ee7a8e6 into main May 25, 2026
@jph00
Copy link
Copy Markdown
Contributor

jph00 commented May 25, 2026

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants