Skip to content

Commit

Permalink
Add docstrings to exchange classes for better help text
Browse files Browse the repository at this point in the history
  • Loading branch information
shreve committed Jan 4, 2024
1 parent 4c51c81 commit fcbe7ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nbgrader/exchange/abc/exchange.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from abc import ABC, abstractmethod
from abc import abstractmethod

from textwrap import dedent

Expand All @@ -17,6 +17,10 @@ class ExchangeError(Exception):


class ABCExchange(LoggingConfigurable):
"""
The abstract Exchange, which underlies every step in the exchange process.
"""

assignment_dir = Unicode(
".",
help=dedent(
Expand Down
4 changes: 4 additions & 0 deletions nbgrader/exchange/default/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@


class Exchange(ABCExchange):
"""
The default implementation of an Exchange based on the local file system.
"""

root = Unicode(
"/usr/local/share/nbgrader/exchange",
help="The nbgrader exchange directory writable to everyone. MUST be preexisting."
Expand Down

0 comments on commit fcbe7ea

Please sign in to comment.