kopia lustrzana https://gitlab.com/jaywink/federation
Make UserType an attrs class
rodzic
7d78122cbc
commit
890e2c940b
|
@ -1,6 +1,9 @@
|
|||
from typing import Optional
|
||||
|
||||
import attr
|
||||
|
||||
|
||||
@attr.s
|
||||
class UserType:
|
||||
id: str
|
||||
private_key: Optional[str]
|
||||
id: str = attr.ib()
|
||||
private_key: Optional[str] = attr.ib(default=None)
|
||||
|
|
1
setup.py
1
setup.py
|
@ -27,6 +27,7 @@ setup(
|
|||
packages=find_packages(),
|
||||
license="BSD 3-clause",
|
||||
install_requires=[
|
||||
"attrs",
|
||||
"cssselect>=0.9.2",
|
||||
"dirty-validators>=0.3.0",
|
||||
"lxml>=3.4.0",
|
||||
|
|
Ładowanie…
Reference in New Issue