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

Add __all__ to all modules #210

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions docassemble/ALToolbox/Addup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Add up numeric field values from a DAList object.
from docassemble.base.util import DAValidationError, word

__all__ = ["Addup"]


class Addup:
def __init__(self, listName, varName):
Expand Down
2 changes: 2 additions & 0 deletions docassemble/ALToolbox/PhoneNumberDataType.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import re
from docassemble.base.util import CustomDataType, DAValidationError

__all__ = ["PhoneNumber"]


class PhoneNumber(CustomDataType):
name = "al_international_phone"
Expand Down
2 changes: 2 additions & 0 deletions docassemble/ALToolbox/ThreePartsDate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from typing import Optional
import re

__all__ = ["ThreePartsDate", "BirthDate"]

js_text = """\
// This is an adaptation of Jonathan Pyle's datereplace.js

Expand Down
3 changes: 3 additions & 0 deletions docassemble/ALToolbox/addenda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
__all__ = ["myTable", "myTextList", "safe_json2"]


# This function creates a Table list to be used in an addendum file. Currently it handles 'Thing' and 'Inidvidual' object type of DAList (special name attribute).
class myTable:
def __init__(self, tblData, tblTitle, tblHeader):
Expand Down
2 changes: 2 additions & 0 deletions docassemble/ALToolbox/copy_button.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from docassemble.base.functions import word

__all__ = ["copy_button_html"]


# See GitHub issue https://github.com/SuffolkLITLab/docassemble-ALToolbox/issues/16
def copy_button_html(
Expand Down
2 changes: 2 additions & 0 deletions docassemble/ALToolbox/display_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from .copy_button import *
from base64 import b64encode

__all__ = ["display_template"]


def display_template(
template,
Expand Down
Loading