Skip to content

Commit

Permalink
Merge pull request #36 from IL-Group/maddy-update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
MaddyGuthridge authored Aug 17, 2024
2 parents 5c0d282 + ecdc38a commit c1b120d
Show file tree
Hide file tree
Showing 4 changed files with 323 additions and 294 deletions.
6 changes: 3 additions & 3 deletions data/transdoc_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
from typing import Any, cast
import griffe
from griffe.dataclasses import Kind
from griffe import Kind
from scripts.consts import MODULES, PATHS_TO_MODULES


Expand All @@ -20,7 +20,7 @@


# Load griffe definitions for all modules
module_info: dict[str, dict[str, Any]] = {}
module_info: dict[str, dict[str, dict[str, Any]]] = {}
for mod in MODULES:
loaded_mod = griffe.load(mod, resolve_aliases=True, resolve_external=True)
module_info[mod] = loaded_mod.as_dict()
Expand All @@ -40,7 +40,7 @@ def get_item_docs_url(module: str, name: str) -> Any:
"""
mod_info = module_info[module]

for item in mod_info["members"]:
for item in mod_info["members"].values():
if item["name"] == name:
if item["kind"] == Kind.ALIAS:
path: list[str] = []
Expand Down
Loading

0 comments on commit c1b120d

Please sign in to comment.