Skip to content

upgrade-mypy#14904

Merged
balloob merged 7 commits intohome-assistant:devfrom
scop:upgrade-mypy
Jul 13, 2018
Merged

upgrade-mypy#14904
balloob merged 7 commits intohome-assistant:devfrom
scop:upgrade-mypy

Conversation

@scop
Copy link
Copy Markdown
Member

@scop scop commented Jun 10, 2018

Description:

Some further work to the upgrade-mypy branch, still some failures left.

@scop scop requested a review from a team as a code owner June 10, 2018 07:06
@homeassistant homeassistant added cla-signed core small-pr PRs with less than 30 lines. labels Jun 10, 2018
@ghost ghost added in progress and removed small-pr PRs with less than 30 lines. labels Jun 10, 2018


def set_component(hass, comp_name: str, component: ModuleType) -> None:
def set_component(hass, comp_name: str, component: Optional[ModuleType]) -> None:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

line too long (81 > 79 characters)

@fabaff fabaff mentioned this pull request Jun 11, 2018
2 tasks
@scop scop requested a review from a team July 1, 2018 05:24
@scop scop requested a review from a team as a code owner July 1, 2018 05:24
@scop scop changed the base branch from upgrade-mypy to dev July 1, 2018 05:28
@cdce8p cdce8p removed their request for review July 1, 2018 11:13
@andrey-git
Copy link
Copy Markdown
Contributor

If you sync to head it should be possible to upgrade mypy without any code changes.

@ghost ghost assigned andrey-git Jul 13, 2018
Components can be accessed via hass.components.switch from your code.
If you want to retrieve a platform that is part of a component, you should
call get_component(hass, 'switch.your_platform'). In both cases the config
call get_component(hass, 'switch.your_platform'). In both cases the config>>>>>>> dev>>>>>>> dev
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

line too long (96 > 79 characters)

@balloob balloob merged commit a6ba5ec into home-assistant:dev Jul 13, 2018
@ghost ghost removed the in progress label Jul 13, 2018
@scop scop deleted the upgrade-mypy branch July 13, 2018 13:47
awarecan pushed a commit to awarecan/home-assistant that referenced this pull request Jul 16, 2018
* Upgrade mypy to 0.600

* Upgrade mypy to 0.610

* Typing improvements

* remove unneeded or

* remove merge artifact

* Update loader.py
@balloob balloob mentioned this pull request Jul 20, 2018
michaeldavie pushed a commit to michaeldavie/home-assistant that referenced this pull request Jul 31, 2018
* Upgrade mypy to 0.600

* Upgrade mypy to 0.610

* Typing improvements

* remove unneeded or

* remove merge artifact

* Update loader.py
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
* Upgrade mypy to 0.600

* Upgrade mypy to 0.610

* Typing improvements

* remove unneeded or

* remove merge artifact

* Update loader.py
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants