Skip to content

feat: adding logic to enable use with earlier supported python versions#72

Open
mini-moose wants to merge 1 commit intoGenAI-Security-Project:v0.2from
mini-moose:fix/71-python-version-compatibility
Open

feat: adding logic to enable use with earlier supported python versions#72
mini-moose wants to merge 1 commit intoGenAI-Security-Project:v0.2from
mini-moose:fix/71-python-version-compatibility

Conversation

@mini-moose
Copy link
Copy Markdown

@mini-moose mini-moose commented Mar 25, 2026

Resolves #71

Summary

  • Import __future__.annotations to allow type hinting across all supported versions
  • Added sys.version_info check to ensure Python version being used is supported by the tool.
  • Added sys.version_info check to import tomllib only if Python version is compatible. Otherwise imports tomli as tomllib to ensure functionality in earlier supported Python versions.
  • Added line to .gitignore to ignore versioned .venv directories.

Changes

File Purpose
/src/config.py Import future.annotations, tomllib => tomli downgrade logic to enable earlier supported versions
.gitignore Ignore versioned .venv files (ex. .venv-3.8, .venv-3.11.7)

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.

1 participant