File tree 9 files changed +12
-10
lines changed
9 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass
15
14
from enum import Enum
16
15
from typing import Optional , Any
17
16
18
17
from dataclasses_json import dataclass_json
18
+ from pydantic .dataclasses import dataclass
19
19
20
20
21
21
class ChangeType (Enum ):
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass
15
14
from typing import Optional
16
15
17
16
from dataclasses_json import dataclass_json
17
+ from pydantic .dataclasses import dataclass
18
18
19
19
20
20
@dataclass_json
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass
15
14
from typing import Any , Optional
16
15
17
16
from dataclasses_json import dataclass_json
17
+ from pydantic .dataclasses import dataclass
18
18
19
19
20
20
@dataclass_json
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass
15
-
16
14
from dataclasses_json import dataclass_json
15
+ from pydantic .dataclasses import dataclass
17
16
18
17
19
18
@dataclass_json
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass , field
14
+ from dataclasses import field
15
15
from datetime import datetime
16
16
from typing import Optional
17
17
18
18
from dataclasses_json import LetterCase , config , dataclass_json
19
19
from dateutil import parser
20
20
from marshmallow import fields
21
+ from pydantic .dataclasses import dataclass
21
22
22
- from centraldogma .data .constants import DATE_FORMAT_ISO8601
23
23
from centraldogma .data .creator import Creator
24
24
25
25
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass , field
14
+ from dataclasses import field
15
15
from datetime import datetime
16
16
17
17
from dataclasses_json import LetterCase , config , dataclass_json
18
18
from marshmallow import fields
19
19
from dateutil import parser
20
+ from pydantic .dataclasses import dataclass
20
21
21
22
22
23
@dataclass_json (letter_case = LetterCase .CAMEL )
Original file line number Diff line number Diff line change 11
11
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
- from dataclasses import dataclass , field
14
+ from dataclasses import field
15
15
from datetime import datetime
16
16
from typing import Optional
17
17
18
18
from dataclasses_json import LetterCase , config , dataclass_json
19
19
from dateutil import parser
20
20
from marshmallow import fields
21
+ from pydantic .dataclasses import dataclass
21
22
22
23
from centraldogma .data .creator import Creator
23
24
Original file line number Diff line number Diff line change 13
13
# under the License.
14
14
from __future__ import annotations
15
15
16
- from dataclasses import dataclass
16
+ from pydantic . dataclasses import dataclass
17
17
18
18
19
19
@dataclass
Original file line number Diff line number Diff line change 1
1
dataclasses-json
2
2
httpx [http2 ]
3
3
marshmallow
4
+ pydantic
4
5
python-dateutil
5
6
6
7
# Dev dependencies
You can’t perform that action at this time.
0 commit comments