Skip to content

Commit

Permalink
Add base import for backwards compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Tom committed Jun 15, 2024
1 parent 6ab480f commit 181bc68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pip install pydantic-avro
import json
from typing import Optional

from pydantic_avro.from_avro.base import AvroBase
from pydantic_avro.base import AvroBase


class TestModel(AvroBase):
Expand Down
2 changes: 2 additions & 0 deletions src/pydantic_avro/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# For backwards compatability
from pydantic_avro.to_avro.base import AvroBase

0 comments on commit 181bc68

Please sign in to comment.