Skip to content

add sitemap index generator#1

Open
schmalliso wants to merge 9 commits intomasterfrom
sitemap-index
Open

add sitemap index generator#1
schmalliso wants to merge 9 commits intomasterfrom
sitemap-index

Conversation

@schmalliso
Copy link
Owner

No description provided.


class ConstructRepo:
def __init__(self, data) -> None:
self.data = data
Copy link

Choose a reason for hiding this comment

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

so the way you actually want to use check_type() is like this:

self.data = check_type(Repo, data)

Copy link
Owner Author

Choose a reason for hiding this comment

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

Isn't data here not a Repo though? Like the data data has a bunch of different fields from my defined Repo class and the final export from this is the Repo object?

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