Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 1411c2a

Browse files
committed
add typing
1 parent 749f3e4 commit 1411c2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

database/models/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def get_repository(self):
380380
def get_commitid(self):
381381
return self.commitid
382382

383-
def should_write_to_storage(self) -> bool:
383+
def should_write_to_storage(self: object) -> bool:
384384
if self.repository is None or self.repository.owner is None:
385385
return False
386386
is_codecov_repo = self.repository.owner.username == "codecov"
@@ -456,7 +456,7 @@ class Pull(CodecovBaseModel):
456456
Repository, backref=backref("pulls", cascade="delete", lazy="dynamic")
457457
)
458458

459-
def should_write_to_storage(self) -> bool:
459+
def should_write_to_storage(self: object) -> bool:
460460
if self.repository is None or self.repository.owner is None:
461461
return False
462462
is_codecov_repo = self.repository.owner.username == "codecov"

database/models/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def rehydrate_encoded_data(self, json_files_array):
161161
for v in json_files_array
162162
]
163163

164-
def _should_write_to_storage(self) -> bool:
164+
def _should_write_to_storage(self: object) -> bool:
165165
# Safety check to see if the path to repository is valid
166166
# Because we had issues around this before
167167
if (

0 commit comments

Comments
 (0)