fix: resolve AttributeError in FilterChain.add_filter by handling tuple immutability

This commit is contained in:
nitesh-77
2026-02-16 05:41:22 +05:30
parent 55de32d925
commit cfa73084ea

View File

@@ -85,7 +85,7 @@ class FilterChain:
def add_filter(self, filter_: URLFilter) -> "FilterChain":
"""Add a filter to the chain"""
self.filters.append(filter_)
self.filters = self.filters + (filter_,)
return self # Enable method chaining
async def apply(self, url: str) -> bool: