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

Update TILookup and ContextLookup #794

Merged

Conversation

FlorianBracq
Copy link
Collaborator

Update lookups to expand kwargs to ensure keywod arguments are named and visible.
Add typing for pa to most of the functions to ensure consistency and proper mypy support.
Apply ruff recommendations:

  • Typing with list/tuple/dict/set instead of List/Tuple/Dict/Set
  • Add ClassVar types
  • Replace Optional and Union by new "pipe notation"
  • Add timezone to datetime objects

@ianhelle
Copy link
Contributor

Wow Florian. You've gone above and beyond the call of duty here. Amazing work!
I'm assuming/hoping that you had some tool assistance with this.

Copy link
Contributor

@ianhelle ianhelle left a comment

Choose a reason for hiding this comment

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

Just the kwargs: str type annotation

conda/conda-reqs-pip.txt Outdated Show resolved Hide resolved
msticpy/context/vtlookupv3/vtlookup.py Show resolved Hide resolved
@ianhelle ianhelle merged commit d2a7a73 into microsoft:main Aug 7, 2024
8 checks passed
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.

2 participants