Skip to content

No longer rely on star imports in NVDAObjects.IAccessible.winword#13805

Merged
seanbudd merged 2 commits into
nvaccess:masterfrom
lukaszgo1:noStarImportsInIAccessibleWinWord
Jun 17, 2022
Merged

No longer rely on star imports in NVDAObjects.IAccessible.winword#13805
seanbudd merged 2 commits into
nvaccess:masterfrom
lukaszgo1:noStarImportsInIAccessibleWinWord

Conversation

@lukaszgo1

Copy link
Copy Markdown
Contributor

Link to issue number:

None, found when testing code from PR #13575

Summary of the issue:

NVDAObjects.IAccessible.winword star imports everything from NVDAObjects.window.winword. This may cause issues when removing imports from NVDAObjects.window.winword, it is also better to be explicit.

Description of how this pull request fixes the issue:

NVDAObjects.IAccessible.winword now imports all used modules explicitly.

Testing strategy:

  • Executed Flake8 on the entire NVDAObjects.IAccessible.winword module - made sure no undefined names show up
  • Smoke tested document and table navigation in MS Word with UIA disabled.

Known issues with pull request:

None known

Change log entries:

None needed

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English

@lukaszgo1 lukaszgo1 requested a review from a team as a code owner June 16, 2022 15:44
@lukaszgo1 lukaszgo1 requested a review from seanbudd June 16, 2022 15:44
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 3cc40dc63b

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit a02ee61077

@lukaszgo1 lukaszgo1 force-pushed the noStarImportsInIAccessibleWinWord branch from c9d4151 to 4d51453 Compare June 16, 2022 17:50
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 7a033223fc

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks @lukaszgo1

@seanbudd seanbudd merged commit 424ada7 into nvaccess:master Jun 17, 2022
@nvaccessAuto nvaccessAuto added this to the 2022.3 milestone Jun 17, 2022
@lukaszgo1 lukaszgo1 deleted the noStarImportsInIAccessibleWinWord branch June 17, 2022 05:51
seanbudd pushed a commit that referenced this pull request Jun 18, 2022
…S Outlook (#13811)

Fixes #13810

Summary of the issue:
PR #13805 removed star imports from NVDAObjects.IAccessible.winword. Unfortunately the appModule for MS Outlook relied on some of the stuff star imported there.

Description of user facing changes
MS Outlook can once again be used with Alpha versions of NVDA.

Description of development approach
Inspected all imports from NVDAObjects.IAccessible.winword - - where they imported stuff which is actually defined in NVDAObjects.window.winword the imports were made explicit.
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.

4 participants