-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type-hinting for looping over the xml children (#137)
* checks against `None` should use the `is` keyword Checking for `None` should be done explicitly and not by relying on the falsienes of it. This is faster and avoids problems if falsy objects are passed in as an argument. * add typehints to `__iter__` methods this fixes the elements being detected as type `Any` and users not getting intellisense
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters