Skip to content

Conversation

@himkt
Copy link
Member

@himkt himkt commented May 15, 2022

@dataclasses.dataclass
class Config:
version: Optional[VersionRepresentation] = None
version: Optional[str] = None
Copy link
Member Author

Choose a reason for hiding this comment

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

[RFC] I'm wondering we can simply change version in Config and py_version in MypyModuleOption to str. It makes config file consistent to their dataclass attributes. I think we can hide VersionRepresentation and PythonVersion internally.

https://github.com/pfnet/pysen/compare/d00e7f4..52737ff

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK!
Thank you for the suggestion!

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