[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] dbconn.py: update type annotation with quotes



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

  • f2c09903
    by Ansgar at 2023-02-19T23:36:16+01:00
    dbconn.py: update type annotation with quotes
    

1 changed file:

Changes:

  • daklib/dbconn.py
    ... ... @@ -1059,7 +1059,7 @@ __all__.append('NewComment')
    1059 1059
     
    
    1060 1060
     
    
    1061 1061
     @session_wrapper
    
    1062
    -def has_new_comment(policy_queue: PolicyQueue, package: str, version: str, session=None) -> bool:
    
    1062
    +def has_new_comment(policy_queue: "PolicyQueue", package: str, version: str, session=None) -> bool:
    
    1063 1063
         """
    
    1064 1064
         Returns :const:`True` if the given combination of `package`, `version` has a comment.
    
    1065 1065
     
    
    ... ... @@ -1081,7 +1081,7 @@ __all__.append('has_new_comment')
    1081 1081
     
    
    1082 1082
     @session_wrapper
    
    1083 1083
     def get_new_comments(
    
    1084
    -        policy_queue: PolicyQueue,
    
    1084
    +        policy_queue: "PolicyQueue",
    
    1085 1085
             package: Optional[str] = None,
    
    1086 1086
             version: Optional[str] = None,
    
    1087 1087
             comment_id: Optional[int] = None,
    


  • Reply to: