[Notes] [Git][BuildStream/buildstream][master] element.py, source.py, plugin.py: Adjusting API version since annotations.



Title: GitLab

Tristan Van Berkom pushed to branch master at BuildStream / buildstream

Commits:

3 changed files:

Changes:

  • buildstream/element.py
    ... ... @@ -140,7 +140,7 @@ class ElementError(BstError):
    140 140
            message (str): The error message to report to the user
    
    141 141
            detail (str): A possibly multiline, more detailed error message
    
    142 142
            reason (str): An optional machine readable reason string, used for test cases
    
    143
    -       temporary(bool): An indicator to whether the error may occur if the operation was run again. (*Since: 1.4*)
    
    143
    +       temporary (bool): An indicator to whether the error may occur if the operation was run again. (*Since: 1.2*)
    
    144 144
         """
    
    145 145
         def __init__(self, message, *, detail=None, reason=None, temporary=False):
    
    146 146
             super().__init__(message, detail=detail, domain=ErrorDomain.ELEMENT, reason=reason, temporary=temporary)
    

  • buildstream/plugin.py
    ... ... @@ -486,7 +486,7 @@ class Plugin():
    486 486
                fail (str): A message to display if the process returns
    
    487 487
                            a non zero exit code
    
    488 488
                fail_temporarily (bool): Whether any exceptions should
    
    489
    -                                    be raised as temporary. (*Since: 1.4*)
    
    489
    +                                    be raised as temporary. (*Since: 1.2*)
    
    490 490
                rest_of_args (kwargs): Remaining arguments to subprocess.call()
    
    491 491
     
    
    492 492
             Returns:
    
    ... ... @@ -520,7 +520,7 @@ class Plugin():
    520 520
                fail (str): A message to display if the process returns
    
    521 521
                            a non zero exit code
    
    522 522
                fail_temporarily (bool): Whether any exceptions should
    
    523
    -                                    be raised as temporary. (*Since: 1.4*)
    
    523
    +                                    be raised as temporary. (*Since: 1.2*)
    
    524 524
                rest_of_args (kwargs): Remaining arguments to subprocess.call()
    
    525 525
     
    
    526 526
             Returns:
    

  • buildstream/source.py
    ... ... @@ -108,7 +108,7 @@ class SourceError(BstError):
    108 108
            message (str): The breif error description to report to the user
    
    109 109
            detail (str): A possibly multiline, more detailed error message
    
    110 110
            reason (str): An optional machine readable reason string, used for test cases
    
    111
    -       temporary(bool): An indicator to whether the error may occur if the operation was run again.  (*Since: 1.4*)
    
    111
    +       temporary (bool): An indicator to whether the error may occur if the operation was run again. (*Since: 1.2*)
    
    112 112
         """
    
    113 113
         def __init__(self, message, *, detail=None, reason=None, temporary=False):
    
    114 114
             super().__init__(message, detail=detail, domain=ErrorDomain.SOURCE, reason=reason, temporary=temporary)
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]