-
Notifications
You must be signed in to change notification settings - Fork 0
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
add sitemap index generator #1
base: master
Are you sure you want to change the base?
Conversation
|
||
class ConstructRepo: | ||
def __init__(self, data) -> None: | ||
self.data = data |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
No description provided.