gradema.section._section

Module Contents

Classes

Section

A section contains information about how many points it is worth.

Attributes

SectionNode

Either a list of Sections, or a Test

gradema.section._section.SectionNode

Either a list of Sections, or a Test

class gradema.section._section.Section

A section contains information about how many points it is worth. A section where points and weight are both none indicate an evenly weighted section. A section with points = 0 indicates an ungraded section. A section where points is non-zero indicates a pointed section. A section where weight is not None indicates a weighted section.

property is_pointed: bool
property is_ungraded: bool
property is_weighted: bool
property is_evenly_weighted: bool
points: int | None
weight: float | None
name: str
node: SectionNode
classmethod pointed(points: int, name: str, node: SectionNode) Section
classmethod ungraded(name: str, node: SectionNode) Section
classmethod weighted(weight: float, name: str, node: SectionNode) Section
classmethod evenly_weighted(name: str, node: SectionNode) Section