Skip to content

Commit 953be44

Browse files
Fix README
1 parent 0c660fb commit 953be44

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ The following python -> C++ mappings are supported (there are likely others I sh
112112
- datetime.time --> std::chrono::system_clock::time_point
113113
- datetime.timedelta --> std::chrono::duration
114114
- pydantic.BaseModel --> struct
115-
- pydantic_bind.BaseModelNoCopy --> struct
115+
- pydantic_bind.BaseModel --> struct
116116
- dataclass --> struct
117-
- Enum -> enum
117+
- pydantic_bind.dataclass --> struct
118+
- Enum --> enum
118119

119120
## Inheritance
120121

@@ -162,7 +163,7 @@ completely rigorously.
162163
from enum import Enum, auto
163164
from typing import Union
164165

165-
from pydantic_bind import BaseModelNoCopy
166+
from pydantic_bind import BaseModel
166167

167168

168169
class Weekday(Enum):
@@ -181,7 +182,7 @@ completely rigorously.
181182
my_string: str | None
182183

183184

184-
class Foo(BaseModelNoCopy):
185+
class Foo(BaseModel):
185186
my_bool: bool = True
186187
my_day: Weekday = Weekday.SUNDAY
187188

@@ -192,7 +193,7 @@ completely rigorously.
192193
my_optional_string: str | None = None
193194

194195

195-
class Baz(BaseModelNoCopy):
196+
class Baz(BaseModel):
196197
my_variant: Union[str, float] = 123.
197198
my_date: dt.date
198199
my_foo: Foo

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description = fh.read()
77

88
setup(name="pydantic_bind",
9-
version="1.0.2",
9+
version="1.0.3",
1010
description="C++/pybind generation from Pydantic classes",
1111
author="Nick Young",
1212
license=r"https://www.apache.org/licenses/LICENSE-2.0",

0 commit comments

Comments
 (0)