{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/5327","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/5327/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5327/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/5327/events","html_url":"https://github.com/astropy/astropy/pull/5327","id":176639849,"number":5327,"title":"Ensure Quantity subclasses always propagate correctly","user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Affects-release","name":"Affects-release","color":"0052cc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/units","name":"units","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/41","html_url":"https://github.com/astropy/astropy/milestones/v1.2.2","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/41/labels","id":1847447,"number":41,"title":"v1.2.2","description":"","creator":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":38,"state":"open","created_at":"2016-06-24T16:24:28Z","updated_at":"2016-10-21T18:47:03Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-13T13:27:06Z","updated_at":"2016-10-23T16:20:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/5327","html_url":"https://github.com/astropy/astropy/pull/5327","diff_url":"https://github.com/astropy/astropy/pull/5327.diff","patch_url":"https://github.com/astropy/astropy/pull/5327.patch"},"body":"-- edit: now turned into a PR that fixes this --\r\n\r\nPartially as a reminder to myself: `Quantity` subclasses should be preferred over `Quantity` itself when that makes sense, so I'd expect an `Angle` to remain an angle as long as the unit remains angular. However, currently, this only happens if the left-hand side of an operation is an `Angle`; if it is a `Quantity`, the result is too:\r\n```\r\nfrom astropy import units as u\r\nfrom astropy.coordinates import Angle\r\nAngle(1., 'deg') + 1.*u.deg\r\n# <Angle 2.0 deg>\r\n1.*u.deg + Angle(1., 'deg')\r\n# <Quantity 2.0 deg>\r\n```"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/255597713","html_url":"https://github.com/astropy/astropy/pull/5327#issuecomment-255597713","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5327","id":255597713,"user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T16:20:51Z","updated_at":"2016-10-23T16:20:51Z","body":"OK, done.  Merging..."}}
{"actor":{"display_login":"mhvk"}}