这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Bnyro
Copy link
Member

@Bnyro Bnyro commented Nov 12, 2025

  • official website: https://devicon.dev/
  • the engine contains a lot of icons of popular software frameworks (e.g. pytest),
    so they could for example be useful for visualizing a diagram of the tech stack used in an app

Comment on lines 50 to 51
res.append(
res.types.LegacyResult(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EngineResults is a inheritance of list and has therefore a append method, but we should use the dedicated method res.add ..

def add(self, result: Result | LegacyResult):
"""Add a :py:`Result` item to the result list."""
self.append(result)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Wouldn't it make sense to add some deprecation warning to EngineResults.append then? I.e.

 def add(self, result: Result | LegacyResult): 
     """Add a :py:`Result` item to the result list.""" 
     super().append(result) 

 def append(self, value: Any):
    logger.debug("DeprecationWarning: Calling EngineResults.append directly is deprecated, please use EngineResults.add")
    self.add(result)

- official website: https://devicon.dev/
- the engine contains a lot of icons of popular software frameworks (e.g. pytest),
so they could for example be useful for visualizing a diagram of the tech stack used in an app
@Bnyro Bnyro merged commit ba98030 into searxng:master Nov 14, 2025
7 checks passed
@Bnyro Bnyro deleted the devicons branch November 14, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants