Skip to content

🏷️ Add strict typing dicts for ts_library.json #40

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

Merged

Conversation

chao-master
Copy link
Contributor

Wip:
Adds a new file json_typing.py that includes TypedDict declarations for the json file format
Then uses those thoughout core where nessesary.

The main benefit is strict typing checking then making and reading the json

Unfinished work:

  • fields, I couldn't work out that is being stored or loaded here
  • macros, I can't actually tell if these are used

@chao-master chao-master force-pushed the feature/typed-dict-and-typing branch from 09e65f1 to f0148c7 Compare April 24, 2024 23:11
@CyanVoxel CyanVoxel self-assigned this Apr 25, 2024
@chao-master chao-master marked this pull request as ready for review April 25, 2024 11:10
Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

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

Looks good! I'll go ahead and pull this, but in the future make sure to use PascalCase/CapWords for Python class names, as described the the PEP 8 Style Guide.

@CyanVoxel CyanVoxel merged commit 276cfaf into TagStudioDev:main Apr 27, 2024
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