Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use DotDict everywhere #82

Closed
wants to merge 4 commits into from

Conversation

Noordsestern
Copy link
Member

No description provided.

@Noordsestern Noordsestern linked an issue Apr 5, 2022 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Apr 5, 2022

Unit Test Results

  1 files  ±0    1 suites  ±0   12s ⏱️ -1s
42 tests ±0  42 ✔️ ±0  0 💤 ±0  0 ±0 
47 runs  ±0  47 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 74df4d6. ± Comparison against base commit 6f40064.

♻️ This comment has been updated with latest results.

@@ -92,7 +93,7 @@ class CamundaLibrary:
EMPTY_STRING = ""
KNOWN_TOPICS: Dict[str, Dict[str, Any]] = {}
FETCH_RESPONSE: LockedExternalTaskDto = {}
DEFAULT_LOCK_DURATION = None
DEFAULT_LOCK_DURATION: int = None
Copy link

Choose a reason for hiding this comment

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

Incompatible attribute type: Attribute DEFAULT_LOCK_DURATION declared in class CamundaLibrary has type int but is used as type None.

(at-me in a reply with help or ignore)

@Noordsestern
Copy link
Member Author

Noordsestern commented Apr 5, 2022

Not sure about this pull request. It was already hard enough to handle conversion from Java objects and JSON in to python DTO and collection types. Replacing python dicts with DotDict does not work everywhere. When a JSON variable contains other nested dictionaries then I do not get them converted.

Looks like I need to decide between consistancy (old fashioned Dicts everywhere) or convenience (DotDict in most places, but old fashioned dicts in some other).

@Noordsestern
Copy link
Member Author

won't fix

@Noordsestern Noordsestern deleted the 79-use-robotutilsdotdict-instead-of-dict branch July 18, 2023 17:39
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.

Use robot.utils.DotDict instead of dict
1 participant