Skip to content

Conversation

@bact
Copy link

@bact bact commented Nov 26, 2024

Add a return type to spdx.parser.parse_anything.parse_file function.

Since all parse_from_file() functions from

  • rdf_parser
  • tagvalue_parser
  • json_parser
  • xml_parser and
  • yaml_parser

that parse_file() is calling, are returning Document,
it should be safe to declare that parse_file() return Document as well.

This will assist type checking.

Signed-off-by: Arthit Suriyawongkul <[email protected]>
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