Skip to content

csv_overrides: Add stronger type hints#1851

Merged
AndreasArvidsson merged 9 commits intomainfrom
auscompgeek/talon-types-csv
Mar 8, 2026
Merged

csv_overrides: Add stronger type hints#1851
AndreasArvidsson merged 9 commits intomainfrom
auscompgeek/talon-types-csv

Conversation

@auscompgeek
Copy link
Member

Checklist

@auscompgeek auscompgeek added code quality Improvements to code quality talon Related to cursorless-talon labels Sep 5, 2023

file_path = get_full_path(filename)
super_default_values = get_super_values(default_values)
assert allow_unknown_values == (default_list_name is not None)
Copy link
Member Author

Choose a reason for hiding this comment

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

Turns out we have dependent types here! It would've been too annoying to check both allow_unknown_values and default_list_name in update_dicts to appease the type checker, but I'm also too lazy to update the callers of init_csv_and_watch_changes right now.

@pokey
Copy link
Member

pokey commented Sep 15, 2023

I see this is still draft—did you want me to have a look or wanted to make some changes first?

@auscompgeek
Copy link
Member Author

It'd probably make sense to address the above issue first, since as it stands there are no types that are coherent in check_for_duplicates.

@pokey
Copy link
Member

pokey commented Sep 29, 2023

Ah right yeah makes sense

@pokey pokey added needs-maintainer Needs to be finished by one of the Cursorless maintainers 30 mins PRs that are very close and just need a couple quick tweaks to merge; maintainer may take it and removed needs-maintainer Needs to be finished by one of the Cursorless maintainers labels Jun 20, 2024
@AndreasArvidsson AndreasArvidsson marked this pull request as ready for review March 8, 2026 04:58
@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner March 8, 2026 04:58
@AndreasArvidsson
Copy link
Member

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7dd742855

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@AndreasArvidsson
Copy link
Member

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@AndreasArvidsson AndreasArvidsson merged commit 5d1bb01 into main Mar 8, 2026
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the auscompgeek/talon-types-csv branch March 8, 2026 06:30
cursorless-bot pushed a commit that referenced this pull request Mar 8, 2026
## Checklist

- [ ] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [ ] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [ ] I have not broken the cheatsheet

---------

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

30 mins PRs that are very close and just need a couple quick tweaks to merge; maintainer may take it code quality Improvements to code quality talon Related to cursorless-talon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants