Skip to content

Commit

Permalink
Typing fix: More direct access to the Family enum
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Mar 14, 2024
1 parent ae053bc commit 48937ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lms/product/blackboard/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from lms.product.blackboard._plugin.course_copy import BlackboardCourseCopyPlugin
from lms.product.blackboard._plugin.grouping import BlackboardGroupingPlugin
from lms.product.blackboard._plugin.misc import BlackboardMiscPlugin
from lms.product.product import PluginConfig, Product, Routes
from lms.product.product import Family, PluginConfig, Product, Routes


@dataclass
class Blackboard(Product):
"""A product for Blackboard specific settings and tweaks."""

family: Product.Family = Product.Family.BLACKBOARD
family: Family = Family.BLACKBOARD

route: Routes = Routes(
oauth2_authorize="blackboard_api.oauth.authorize",
Expand Down
4 changes: 2 additions & 2 deletions lms/product/canvas/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from lms.product.canvas._plugin.course_copy import CanvasCourseCopyPlugin
from lms.product.canvas._plugin.grouping import CanvasGroupingPlugin
from lms.product.canvas._plugin.misc import CanvasMiscPlugin
from lms.product.product import PluginConfig, Product, Routes
from lms.product.product import Family, PluginConfig, Product, Routes


@dataclass
class Canvas(Product):
"""A product for Canvas specific settings and tweaks."""

family: Product.Family = Product.Family.CANVAS
family: Family = Family.CANVAS

route: Routes = Routes(
oauth2_authorize="canvas_api.oauth.authorize",
Expand Down
4 changes: 2 additions & 2 deletions lms/product/d2l/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from lms.product.d2l._plugin.course_copy import D2LCourseCopyPlugin
from lms.product.d2l._plugin.grouping import D2LGroupingPlugin
from lms.product.d2l._plugin.misc import D2LMiscPlugin
from lms.product.product import PluginConfig, Product, Routes
from lms.product.product import Family, PluginConfig, Product, Routes


@dataclass
class D2L(Product):
"""A product for D2L specific settings and tweaks."""

family: Product.Family = Product.Family.D2L
family: Family = Family.D2L

plugin_config: PluginConfig = PluginConfig(
grouping=D2LGroupingPlugin, misc=D2LMiscPlugin, course_copy=D2LCourseCopyPlugin
Expand Down
4 changes: 2 additions & 2 deletions lms/product/moodle/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from lms.product.moodle._plugin.course_copy import MoodleCourseCopyPlugin
from lms.product.moodle._plugin.grouping import MoodleGroupingPlugin
from lms.product.moodle._plugin.misc import MoodleMiscPlugin
from lms.product.product import PluginConfig, Product, Routes
from lms.product.product import Family, PluginConfig, Product, Routes


@dataclass
class Moodle(Product):
family: Product.Family = Product.Family.MOODLE
family: Family = Family.MOODLE

plugin_config: PluginConfig = PluginConfig(
grouping=MoodleGroupingPlugin,
Expand Down

0 comments on commit 48937ae

Please sign in to comment.