dlai-grader 1.21.3__tar.gz → 1.22.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dlai-grader might be problematic. Click here for more details.

Files changed (21) hide show
  1. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/PKG-INFO +1 -1
  2. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/__init__.py +1 -1
  3. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/compiler.py +2 -0
  4. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/grading.py +2 -3
  5. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/templates.py +2 -2
  6. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/PKG-INFO +1 -1
  7. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/setup.py +1 -1
  8. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/LICENSE +0 -0
  9. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/README.md +0 -0
  10. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/cli.py +0 -0
  11. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/config.py +0 -0
  12. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/io.py +0 -0
  13. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/notebook.py +0 -0
  14. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/py.typed +0 -0
  15. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader/types.py +0 -0
  16. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/SOURCES.txt +0 -0
  17. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/dependency_links.txt +0 -0
  18. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/entry_points.txt +0 -0
  19. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/requires.txt +0 -0
  20. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/dlai_grader.egg-info/top_level.txt +0 -0
  21. {dlai_grader-1.21.3 → dlai_grader-1.22.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dlai-grader
3
- Version: 1.21.3
3
+ Version: 1.22.1
4
4
  Summary: Grading utilities for DLAI courses
5
5
  Home-page: https://github.com/https-deeplearning-ai/grader
6
6
  Author: Andres Zarta
@@ -6,6 +6,6 @@ from . import grading
6
6
  from . import types
7
7
 
8
8
 
9
- __version__ = "1.21.3"
9
+ __version__ = "1.22.1"
10
10
  __author__ = "Andres Zarta"
11
11
  __credits__ = "DeepLearning.AI"
@@ -48,6 +48,8 @@ def compile_partial_module(
48
48
  notebook (NotebookNode): Notebook from learner.
49
49
  module_name (str): Name of the module.
50
50
  verbose (bool): Whether to print out streams as a result of compilation. Defaults to True.
51
+ exit_on_error (bool): Whether to stop compilation if an exception is found. Defaults to False.
52
+ debug_mode (bool): Whether to print out cells where exceptions occurred. Defaults to False.
51
53
  Returns:
52
54
  ModuleType: The actual module that can be used to call functions/variables/etc.
53
55
  """
@@ -146,8 +146,7 @@ def graded_obj_missing(test_cases: List[test_case]) -> bool:
146
146
  Returns:
147
147
  bool: True if object is missing. False otherwise.
148
148
  """
149
- if len(test_cases) == 1:
150
- if test_cases[0].got == type(None) or test_cases[0].got == None:
151
- return True
149
+ if len(test_cases) == 1 and test_cases[0].got == type(None):
150
+ return True
152
151
 
153
152
  return False
@@ -136,7 +136,7 @@ def load_templates() -> Dict[str, str]:
136
136
 
137
137
 
138
138
  def part_1(
139
- learner_mod: learner_submission, solution_mod: Optional[ModuleType]
139
+ learner_mod: learner_submission, solution_mod: Optional[ModuleType] = None
140
140
  ) -> grading_function:
141
141
  @object_to_grade(learner_mod, "learner_func")
142
142
  def g(learner_func: FunctionType) -> List[test_case]:
@@ -220,7 +220,7 @@ def load_templates() -> Dict[str, str]:
220
220
 
221
221
  solution_mod = compile_partial_module(solution_nb, "solution_mod", verbose=False)
222
222
 
223
- g_func = handle_part_id(c.part_id)(learner_mod, solution_mod)
223
+ g_func = handle_part_id(c.part_id)(learner_mod)
224
224
 
225
225
  try:
226
226
  cases = g_func()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dlai-grader
3
- Version: 1.21.3
3
+ Version: 1.22.1
4
4
  Summary: Grading utilities for DLAI courses
5
5
  Home-page: https://github.com/https-deeplearning-ai/grader
6
6
  Author: Andres Zarta
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
5
5
 
6
6
  setup(
7
7
  name="dlai-grader",
8
- version="1.21.3",
8
+ version="1.22.1",
9
9
  description="Grading utilities for DLAI courses",
10
10
  url="https://github.com/https-deeplearning-ai/grader",
11
11
  author="Andres Zarta",
File without changes
File without changes
File without changes