Skip to content

Commit a14f2c1

Browse files
committed
Update schema.py
1 parent 6447308 commit a14f2c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppython/core/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from abc import abstractmethod
44
from pathlib import Path
5-
from typing import Annotated, Any, NewType, Protocol, runtime_checkable
5+
from typing import Annotated, Any, NewType, Protocol, Self, runtime_checkable
66

77
from packaging.requirements import Requirement
88
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
@@ -80,7 +80,7 @@ class PEP621Configuration(CPPythonModel):
8080

8181
@model_validator(mode='after') # type: ignore
8282
@classmethod
83-
def dynamic_data(cls, model: PEP621Configuration) -> PEP621Configuration:
83+
def dynamic_data(cls, model: Self) -> Self:
8484
"""Validates that dynamic data is represented correctly
8585
8686
Args:

0 commit comments

Comments
 (0)