File: items.py

package info (click to toggle)
python-web-poet 0.23.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 940 kB
  • sloc: python: 6,113; makefile: 19
file content (15 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from attrs import define


@define
class Book:
    title: str


from typing import Optional


@define
class CategorizedBook(Book):
    category: str
    category_rank: Optional[int] = None