@@ -57,7 +57,7 @@ def __exit__(
5757 self ,
5858 exc_type : type [BaseException ] | None ,
5959 exc_val : BaseException | None ,
60- exc_tb : "TracebackType | None" ,
60+ exc_tb : "TracebackType | None" , # noqa: PYI036
6161 ) -> None :
6262 """Restore the deleted environment variable to its previous states."""
6363 if self .env_file_path .is_file ():
@@ -67,7 +67,7 @@ def __exit__(
6767 os .environ [self .env_variable_name ] = self .old_env_value
6868
6969
70- class TemporarySettingsKeyReplacer : # TODO: Delete if has no uses
70+ class TemporarySettingsKeyReplacer :
7171 """Context manager that temporarily replaces the value at the given settings key."""
7272
7373 NOT_SET : "Final[object]" = object ()
@@ -96,7 +96,7 @@ def __exit__(
9696 self ,
9797 exc_type : type [BaseException ] | None ,
9898 exc_val : BaseException | None ,
99- exc_tb : "TracebackType | None" ,
99+ exc_tb : "TracebackType | None" , # noqa: PYI036
100100 ) -> None :
101101 """Restore the replaced settings value with the original value if it existed."""
102102 if self .old_settings_value is self .NOT_SET :
@@ -152,7 +152,7 @@ def __exit__(
152152 self ,
153153 exc_type : type [BaseException ] | None ,
154154 exc_val : BaseException | None ,
155- exc_tb : "TracebackType | None" ,
155+ exc_tb : "TracebackType | None" , # noqa: PYI036
156156 ) -> None :
157157 """Restore the deleted file at the stored file path."""
158158 if self ._temp_file_path is not None :
0 commit comments