(self)
| 75 | self.size += 1 |
| 76 | |
| 77 | def remove(self) -> Any: |
| 78 | # Switched 'self.is_empty()' to 'self.head is None' |
| 79 | # because mypy was considering the possibility that 'self.head' |
| 80 | # can be None in below else part and giving error |
| 81 | if self.head is None: |
| 82 | return None |
| 83 | else: |
| 84 | item = self.head.item |
| 85 | self.head = self.head.next |
| 86 | self.size -= 1 |
| 87 | return item |
| 88 | |
| 89 | def is_empty(self) -> bool: |
| 90 | return self.head is None |
nothing calls this directly
no outgoing calls
no test coverage detected