Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test new relative autorefs syntax #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: use a relative reference (thus break docs deployment build)
  • Loading branch information
lmmx committed Jan 14, 2024
commit 41945fd5b8e35576f760532bfe665e18d988b223
9 changes: 5 additions & 4 deletions src/foo/src/foo/main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from pydantic import BaseModel
from dataclasses import dataclass


__all__ = ["A"]


class A(BaseModel):
@dataclass
class A:
"""
This is an example of a documented Pydantic model.
This is an example of a documented class.

[.x][foo.main.A.x]
[.x][]

Attributes:
x: An example number.
Expand Down