File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,24 @@ def __init__(self) -> None:
36
36
37
37
38
38
class FrozenAttributeCantBeSet (AttributeError ):
39
+ """
40
+ The attributes of EnvDataclass are frozen on purpose
41
+ to avoid race condition as accessing an attribute loads
42
+ the value dynamically from the environment.
43
+ """
44
+
39
45
def __init__ (self , name , value ) -> None :
40
46
super ().__init__ (
41
47
f"Attribute of the wdoc env instance should not be set manually, instead modify os.environ. Attribute name was '{ name } '. Value was '{ value } '"
42
48
)
43
49
44
50
45
51
class NoInferrableFiletype (Exception ):
52
+ """
53
+ Occurs when the 'filetype' argument of a file
54
+ was left by the user to 'auto' but wdoc failed to
55
+ find the appropriate loader for it.
56
+ """
57
+
46
58
def __init__ (self , message : str ) -> None :
47
59
super ().__init__ (message )
You can’t perform that action at this time.
0 commit comments