Skip to content

Commit

Permalink
Use NewTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Jul 22, 2023
1 parent f78adba commit 2e983a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 4 additions & 5 deletions aiochris/models/public.py
Expand Up @@ -36,13 +36,12 @@ class PluginParameter(LinkedModel):
Information about a parameter (a command-line option/flag) of a plugin.
"""

# FIXME use NewTypes
url: str
url: PluginParameterUrl
id: PluginParameterId
name: str
type: str
name: ParameterName
type: ParameterType
optional: bool
default: Optional[Any]
default: Optional[ParameterType]
flag: str
short_flag: str
action: Literal["store", "store_true", "store_false"]
Expand Down
2 changes: 2 additions & 0 deletions aiochris/types.py
Expand Up @@ -101,3 +101,5 @@
TagsUrl = NewType("TagsUrl", str)
TaggingsUrl = NewType("TaggingsUrl", str)
CommentsUrl = NewType("CommentsUrl", str)

PluginParameterUrl = NewType("PluginParameterUrl", str)

0 comments on commit 2e983a6

Please sign in to comment.