mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: Apply linter edits to repomap.py
This commit is contained in:
parent
ba1c8d1701
commit
b86dde5f0d
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ class RepoMap:
|
|||
sample_size = min(100, num_tags)
|
||||
sample_tree = self.to_tree(ranked_tags[:sample_size], chat_rel_fnames)
|
||||
sample_tokens = self.token_count(sample_tree)
|
||||
|
||||
|
||||
if sample_tokens > 0:
|
||||
estimated_tags = int((max_map_tokens / sample_tokens) * sample_size)
|
||||
middle = min(estimated_tags, num_tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue